1
1
/*
2
- * Copyright 2002-2017 the original author or authors.
2
+ * Copyright 2002-2018 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
20
20
21
21
import org .springframework .context .ApplicationContext ;
22
22
import org .springframework .context .support .ClassPathXmlApplicationContext ;
23
- import org .springframework .oxm .castor .CastorMarshaller ;
24
23
import org .springframework .oxm .jaxb .Jaxb2Marshaller ;
25
24
26
25
import static org .junit .Assert .*;
@@ -39,39 +38,15 @@ public class OxmNamespaceHandlerTests {
39
38
40
39
41
40
@ Test
42
- public void jaxb2ContextPathMarshaller () throws Exception {
41
+ public void jaxb2ContextPathMarshaller () {
43
42
Jaxb2Marshaller jaxb2Marshaller = applicationContext .getBean ("jaxb2ContextPathMarshaller" , Jaxb2Marshaller .class );
44
43
assertNotNull (jaxb2Marshaller );
45
44
}
46
45
47
46
@ Test
48
- public void jaxb2ClassesToBeBoundMarshaller () throws Exception {
47
+ public void jaxb2ClassesToBeBoundMarshaller () {
49
48
Jaxb2Marshaller jaxb2Marshaller = applicationContext .getBean ("jaxb2ClassesMarshaller" , Jaxb2Marshaller .class );
50
49
assertNotNull (jaxb2Marshaller );
51
50
}
52
51
53
- @ Test
54
- public void castorEncodingMarshaller () throws Exception {
55
- CastorMarshaller castorMarshaller = applicationContext .getBean ("castorEncodingMarshaller" , CastorMarshaller .class );
56
- assertNotNull (castorMarshaller );
57
- }
58
-
59
- @ Test
60
- public void castorTargetClassMarshaller () throws Exception {
61
- CastorMarshaller castorMarshaller = applicationContext .getBean ("castorTargetClassMarshaller" , CastorMarshaller .class );
62
- assertNotNull (castorMarshaller );
63
- }
64
-
65
- @ Test
66
- public void castorTargetPackageMarshaller () throws Exception {
67
- CastorMarshaller castorMarshaller = applicationContext .getBean ("castorTargetPackageMarshaller" , CastorMarshaller .class );
68
- assertNotNull (castorMarshaller );
69
- }
70
-
71
- @ Test
72
- public void castorMappingLocationMarshaller () throws Exception {
73
- CastorMarshaller castorMarshaller = applicationContext .getBean ("castorMappingLocationMarshaller" , CastorMarshaller .class );
74
- assertNotNull (castorMarshaller );
75
- }
76
-
77
52
}
0 commit comments