Skip to content
Browse files

Subversion to GitHub migration init commit

  • Loading branch information...
1 parent fe2cf95 commit 3ccbb52aa7454f3937983dcaf993a557deb29fb0 @mkouba mkouba committed Jul 21, 2011
Showing with 6 additions and 7,202 deletions.
  1. +6 −0 .gitignore
  2. 0 ...org/jboss/testharness/impl/packaging/jsr299/default/beans.xml → api/src/main/resources/.gitignore
  3. 0 impl/src/test/java/org/jboss/jsr299/tck/test/impl/packaging/declarative/standalone/.gitignore
  4. 0 impl/src/test/java/org/jboss/jsr299/tck/test/impl/packaging/descriptors/subpackages/.gitignore
  5. 0 impl/src/test/java/org/jboss/jsr299/tck/test/impl/packaging/scanner/.gitignore
  6. 0 impl/src/test/resources/org/jboss/jsr299/tck/test/impl/packaging/declarative/standalone/.gitignore
  7. +0 −292 interceptor/pom.xml
  8. +0 −144 interceptor/src/main/java/org/jboss/jsr299/tck/AbstractJSR299Test.java
  9. +0 −97 interceptor/src/main/java/org/jboss/jsr299/tck/ForwardingBean.java
  10. +0 −98 interceptor/src/main/java/org/jboss/jsr299/tck/impl/JSR299ConfigurationImpl.java
  11. +0 −45 interceptor/src/main/java/org/jboss/jsr299/tck/impl/JSR299PropertiesBasedConfigurationBuilder.java
  12. +0 −11 interceptor/src/main/java/org/jboss/jsr299/tck/literals/CurrentLiteral.java
  13. +0 −9 interceptor/src/main/java/org/jboss/jsr299/tck/literals/NewLiteral.java
  14. +0 −2 interceptor/src/main/resources/META-INF/jboss-test-harness.properties
  15. +0 −5 interceptor/src/main/resources/META-INF/tck-unit.properties
  16. +0 −7 interceptor/src/main/resources/org/jboss/testharness/impl/packaging/ear/ejb-jar.xml
  17. +0 −410 interceptor/src/main/resources/tck-audit.xml
  18. +0 −26 interceptor/src/main/resources/tck-tests.xml
  19. +0 −292 xml/pom.xml
  20. +0 −144 xml/src/main/java/org/jboss/jsr299/tck/AbstractJSR299Test.java
  21. +0 −97 xml/src/main/java/org/jboss/jsr299/tck/ForwardingBean.java
  22. +0 −98 xml/src/main/java/org/jboss/jsr299/tck/impl/JSR299ConfigurationImpl.java
  23. +0 −45 xml/src/main/java/org/jboss/jsr299/tck/impl/JSR299PropertiesBasedConfigurationBuilder.java
  24. +0 −11 xml/src/main/java/org/jboss/jsr299/tck/literals/CurrentLiteral.java
  25. +0 −9 xml/src/main/java/org/jboss/jsr299/tck/literals/NewLiteral.java
  26. +0 −6 xml/src/main/java/org/jboss/jsr299/tck/tests/implementation/simple/lifecycle/Animal.java
  27. +0 −20 ...c/main/java/org/jboss/jsr299/tck/tests/implementation/simple/lifecycle/AnotherDeploymentType.java
  28. +0 −12 xml/src/main/java/org/jboss/jsr299/tck/tests/implementation/simple/lifecycle/BookOrderProcessor.java
  29. +0 −6 xml/src/main/java/org/jboss/jsr299/tck/tests/implementation/simple/lifecycle/CdOrderProcessor.java
  30. +0 −14 xml/src/main/java/org/jboss/jsr299/tck/tests/implementation/simple/lifecycle/Cod.java
  31. +0 −29 xml/src/main/java/org/jboss/jsr299/tck/tests/implementation/simple/lifecycle/Duck.java
  32. +0 −24 xml/src/main/java/org/jboss/jsr299/tck/tests/implementation/simple/lifecycle/Egg.java
  33. +0 −26 xml/src/main/java/org/jboss/jsr299/tck/tests/implementation/simple/lifecycle/EggProducer.java
  34. +0 −33 xml/src/main/java/org/jboss/jsr299/tck/tests/implementation/simple/lifecycle/Farm.java
  35. +0 −9 xml/src/main/java/org/jboss/jsr299/tck/tests/implementation/simple/lifecycle/FarmOffice.java
  36. +0 −26 xml/src/main/java/org/jboss/jsr299/tck/tests/implementation/simple/lifecycle/FishPond.java
  37. +0 −21 xml/src/main/java/org/jboss/jsr299/tck/tests/implementation/simple/lifecycle/FishStereotype.java
  38. +0 −6 xml/src/main/java/org/jboss/jsr299/tck/tests/implementation/simple/lifecycle/FooException.java
  39. +0 −12 xml/src/main/java/org/jboss/jsr299/tck/tests/implementation/simple/lifecycle/Goldfish.java
  40. +0 −14 xml/src/main/java/org/jboss/jsr299/tck/tests/implementation/simple/lifecycle/Goose.java
  41. +0 −6 .../main/java/org/jboss/jsr299/tck/tests/implementation/simple/lifecycle/IndirectOrderProcessor.java
  42. +0 −6 ...n/java/org/jboss/jsr299/tck/tests/implementation/simple/lifecycle/IntermediateOrderProcessor.java
  43. +0 −7 xml/src/main/java/org/jboss/jsr299/tck/tests/implementation/simple/lifecycle/Lion.java
  44. +0 −11 xml/src/main/java/org/jboss/jsr299/tck/tests/implementation/simple/lifecycle/Lorry_Broken.java
  45. +0 −10 xml/src/main/java/org/jboss/jsr299/tck/tests/implementation/simple/lifecycle/MountainLion.java
  46. +0 −36 ...src/main/java/org/jboss/jsr299/tck/tests/implementation/simple/lifecycle/MyCreationalContext.java
  47. +0 −6 ...src/main/java/org/jboss/jsr299/tck/tests/implementation/simple/lifecycle/NovelOrderProcessor.java
  48. +0 −31 xml/src/main/java/org/jboss/jsr299/tck/tests/implementation/simple/lifecycle/OrderProcessor.java
  49. +0 −10 xml/src/main/java/org/jboss/jsr299/tck/tests/implementation/simple/lifecycle/RedSnapper.java
  50. +0 −18 ...ava/org/jboss/jsr299/tck/tests/implementation/simple/lifecycle/RequestScopedAnimalStereotype.java
  51. +0 −24 xml/src/main/java/org/jboss/jsr299/tck/tests/implementation/simple/lifecycle/Salmon.java
  52. +0 −382 ...main/java/org/jboss/jsr299/tck/tests/implementation/simple/lifecycle/SimpleBeanLifecycleTest.java
  53. +0 −22 xml/src/main/java/org/jboss/jsr299/tck/tests/implementation/simple/lifecycle/Synchronous.java
  54. +0 −22 xml/src/main/java/org/jboss/jsr299/tck/tests/implementation/simple/lifecycle/Tame.java
  55. +0 −15 xml/src/main/java/org/jboss/jsr299/tck/tests/implementation/simple/lifecycle/Tuna.java
  56. +0 −17 xml/src/main/java/org/jboss/jsr299/tck/tests/implementation/simple/lifecycle/TunaFarm.java
  57. +0 −11 xml/src/main/java/org/jboss/jsr299/tck/tests/implementation/simple/lifecycle/Van_Broken.java
  58. +0 −115 xml/src/main/java/org/jboss/jsr299/tck/tests/xml/annotationtypes/AnnotationTypesTest.java
  59. +0 −20 xml/src/main/java/org/jboss/jsr299/tck/tests/xml/annotationtypes/AnotherTestBindingType.java
  60. +0 −14 xml/src/main/java/org/jboss/jsr299/tck/tests/xml/annotationtypes/AnotherTestInterceptor.java
  61. +0 −9 ...c/main/java/org/jboss/jsr299/tck/tests/xml/annotationtypes/AnotherTestInterceptorBindingType.java
  62. +0 −17 xml/src/main/java/org/jboss/jsr299/tck/tests/xml/annotationtypes/AnotherTestStereotype.java
  63. +0 −10 ...c/main/java/org/jboss/jsr299/tck/tests/xml/annotationtypes/BeanWithAnotherInterceptorBinding.java
  64. +0 −7 xml/src/main/java/org/jboss/jsr299/tck/tests/xml/annotationtypes/BeanWithAnotherStereotype.java
  65. +0 −7 xml/src/main/java/org/jboss/jsr299/tck/tests/xml/annotationtypes/BeanWithBinding.java
  66. +0 −7 xml/src/main/java/org/jboss/jsr299/tck/tests/xml/annotationtypes/BeanWithBindingAnnotation.java
  67. +0 −10 xml/src/main/java/org/jboss/jsr299/tck/tests/xml/annotationtypes/BeanWithInterceptorBinding.java
  68. +0 −12 xml/src/main/java/org/jboss/jsr299/tck/tests/xml/annotationtypes/BeanWithStereotype.java
  69. +0 −10 xml/src/main/java/org/jboss/jsr299/tck/tests/xml/annotationtypes/InheritedInterceptorTestBean.java
  70. +0 −22 xml/src/main/java/org/jboss/jsr299/tck/tests/xml/annotationtypes/Interceptor1.java
  71. +0 −22 xml/src/main/java/org/jboss/jsr299/tck/tests/xml/annotationtypes/Interceptor2.java
  72. +0 −52 xml/src/main/java/org/jboss/jsr299/tck/tests/xml/annotationtypes/InterceptorRecorder.java
  73. +0 −15 xml/src/main/java/org/jboss/jsr299/tck/tests/xml/annotationtypes/InterceptorType1.java
  74. +0 −15 xml/src/main/java/org/jboss/jsr299/tck/tests/xml/annotationtypes/InterceptorType2.java
  75. +0 −17 xml/src/main/java/org/jboss/jsr299/tck/tests/xml/annotationtypes/TestBindingType.java
  76. +0 −9 xml/src/main/java/org/jboss/jsr299/tck/tests/xml/annotationtypes/TestDeploymentType.java
  77. +0 −14 xml/src/main/java/org/jboss/jsr299/tck/tests/xml/annotationtypes/TestInterceptor.java
  78. +0 −15 xml/src/main/java/org/jboss/jsr299/tck/tests/xml/annotationtypes/TestInterceptorBindingType.java
  79. +0 −9 xml/src/main/java/org/jboss/jsr299/tck/tests/xml/annotationtypes/TestNamed.java
  80. +0 −9 xml/src/main/java/org/jboss/jsr299/tck/tests/xml/annotationtypes/TestScopeType.java
  81. +0 −17 xml/src/main/java/org/jboss/jsr299/tck/tests/xml/annotationtypes/TestStereotype.java
  82. +0 −27 ...ests/xml/annotationtypes/notvalidxml/bindingtype/multipledeclaration/MultipleDeclarationTest.java
  83. +0 −29 ...ck/tests/xml/annotationtypes/notvalidxml/bindingtype/notannotationtype/NotAnnotationTypeTest.java
  84. +0 −26 ...oss/jsr299/tck/tests/xml/annotationtypes/notvalidxml/bindingtype/notjavatype/NotJavaTypeTest.java
  85. +0 −5 xml/src/main/java/org/jboss/jsr299/tck/tests/xml/annotationtypes/notvalidxml/foo/AnnotationType.java
  86. +0 −6 ...c/main/java/org/jboss/jsr299/tck/tests/xml/annotationtypes/notvalidxml/foo/NotAnnotationType.java
  87. +0 −6 ...src/main/java/org/jboss/jsr299/tck/tests/xml/annotationtypes/notvalidxml/foo/TestBindingType.java
  88. +0 −6 ...va/org/jboss/jsr299/tck/tests/xml/annotationtypes/notvalidxml/foo/TestInterceptorBindingType.java
  89. +0 −6 xml/src/main/java/org/jboss/jsr299/tck/tests/xml/annotationtypes/notvalidxml/foo/TestStereotype.java
  90. +0 −26 .../annotationtypes/notvalidxml/interceptorbindingtype/childnotannotation/NotAnnotationTypeTest.java
  91. +0 −26 ...xml/annotationtypes/notvalidxml/interceptorbindingtype/childnotjavatype/ChildNotJavaTypeTest.java
  92. +0 −27 ...notationtypes/notvalidxml/interceptorbindingtype/multipledeclaration/MultipleDeclarationTest.java
  93. +0 −27 ...l/annotationtypes/notvalidxml/interceptorbindingtype/notannotationtype/NotAnnotationTypeTest.java
  94. +0 −26 ...tck/tests/xml/annotationtypes/notvalidxml/interceptorbindingtype/notjavatype/NotJavaTypeTest.java
  95. +0 −28 ...k/tests/xml/annotationtypes/notvalidxml/interceptorbindingtype/notvalidtype/NotValidTypeTest.java
  96. +0 −26 ...ck/tests/xml/annotationtypes/notvalidxml/stereotype/childnotannotation/NotAnnotationTypeTest.java
  97. +0 −26 ...jsr299/tck/tests/xml/annotationtypes/notvalidxml/stereotype/childnotjavatype/NotJavaTypeTest.java
  98. +0 −27 ...tests/xml/annotationtypes/notvalidxml/stereotype/multipledeclaration/MultipleDeclarationTest.java
  99. +0 −29 ...tck/tests/xml/annotationtypes/notvalidxml/stereotype/notannotationtype/NotAnnotationTypeTest.java
  100. +0 −26 ...boss/jsr299/tck/tests/xml/annotationtypes/notvalidxml/stereotype/notjavatype/NotJavaTypeTest.java
  101. +0 −28 ...ss/jsr299/tck/tests/xml/annotationtypes/notvalidxml/stereotype/notvalidtype/NotValidTypeTest.java
  102. +0 −37 ...rc/main/java/org/jboss/jsr299/tck/tests/xml/declaration/deployment/DeploymentDeclarationTest.java
  103. +0 −6 xml/src/main/java/org/jboss/jsr299/tck/tests/xml/declaration/deployment/foo/NotDeploymentType.java
  104. +0 −7 xml/src/main/java/org/jboss/jsr299/tck/tests/xml/declaration/deployment/foo/Order.java
  105. +0 −21 xml/src/main/java/org/jboss/jsr299/tck/tests/xml/declaration/deployment/foo/TestDeploymentType.java
  106. +0 −29 ...99/tck/tests/xml/declaration/deployment/notvalid/multipledeclaration/MultipleDeclarationTest.java
  107. +0 −29 ...jsr299/tck/tests/xml/declaration/deployment/notvalid/notdeploymenttype/NotDeploymentTypeTest.java
  108. +0 −26 ...a/org/jboss/jsr299/tck/tests/xml/declaration/deployment/notvalid/notjavatype/NotJavaTypeTest.java
  109. +0 −41 xml/src/main/java/org/jboss/jsr299/tck/tests/xml/metadata/XmlBasedMetadataTest.java
  110. +0 −19 xml/src/main/java/org/jboss/jsr299/tck/tests/xml/metadata/foo/Order.java
  111. +0 −20 xml/src/main/java/org/jboss/jsr299/tck/tests/xml/metadata/foo/another/AnotherOrder.java
  112. +0 −9 xml/src/main/java/org/jboss/jsr299/tck/tests/xml/namespace/aggregation/Cow.java
  113. +0 −36 xml/src/main/java/org/jboss/jsr299/tck/tests/xml/namespace/aggregation/NamespaceAggregationTest.java
  114. +0 −21 ...src/main/java/org/jboss/jsr299/tck/tests/xml/namespace/aggregation/foo/AnotherDeploymentType.java
  115. +0 −9 xml/src/main/java/org/jboss/jsr299/tck/tests/xml/namespace/aggregation/foo/TestDeploymentType.java
  116. +0 −21 ...ain/java/org/jboss/jsr299/tck/tests/xml/namespace/aggregation/foo/copy/AnotherDeploymentType.java
  117. +0 −37 ...99/tck/tests/xml/namespace/aggregation/multipleTypes/MultipleTypesInAggregatedNamespacesTest.java
  118. +0 −78 xml/src/main/java/org/jboss/jsr299/tck/tests/xml/namespace/javaee/pkg/JavaEePkgTest.java
  119. +0 −42 xml/src/main/java/org/jboss/jsr299/tck/tests/xml/namespace/javaee/pkg/Order.java
  120. +0 −22 xml/src/main/java/org/jboss/jsr299/tck/tests/xml/namespace/javaee/pkg/TestBindingType.java
  121. +0 −47 xml/src/main/java/org/jboss/jsr299/tck/tests/xml/namespace/javatypes/ArrayTest.java
  122. +0 −22 xml/src/main/java/org/jboss/jsr299/tck/tests/xml/namespace/javatypes/CurrentCustomerAddress.java
  123. +0 −22 xml/src/main/java/org/jboss/jsr299/tck/tests/xml/namespace/javatypes/CurrentCustomerName.java
  124. +0 −42 xml/src/main/java/org/jboss/jsr299/tck/tests/xml/namespace/javatypes/LineItem.java
  125. +0 −67 xml/src/main/java/org/jboss/jsr299/tck/tests/xml/namespace/javatypes/PrimitiveTest.java
  126. +0 −28 xml/src/main/java/org/jboss/jsr299/tck/tests/xml/namespace/javatypes/Product.java
  127. +0 −34 xml/src/main/java/org/jboss/jsr299/tck/tests/xml/namespace/javatypes/PurchaseOrder.java
  128. +0 −28 xml/src/main/java/org/jboss/jsr299/tck/tests/xml/namespace/javatypes/ShipTo.java
  129. +0 −52 xml/src/main/java/org/jboss/jsr299/tck/tests/xml/namespace/javatypes/TypeMemberTest.java
  130. +0 −47 xml/src/main/java/org/jboss/jsr299/tck/tests/xml/namespace/javatypes/TypedParameterTest.java
  131. +0 −26 xml/src/main/java/org/jboss/jsr299/tck/tests/xml/namespace/notdeclared/NotDeclaredNamespaceTest.java
  132. +0 −63 xml/src/main/java/org/jboss/jsr299/tck/tests/xml/resource/ejb/DeclarationOfEjbTest.java
  133. +0 −14 xml/src/main/java/org/jboss/jsr299/tck/tests/xml/resource/ejb/RemoteEjb.java
  134. +0 −9 xml/src/main/java/org/jboss/jsr299/tck/tests/xml/resource/ejb/RemoteEjbInterface.java
  135. +0 −54 .../jsr299/tck/tests/xml/resource/persistenceContext/DeclarationOfPersistenceUnitAndContextTest.java
  136. +0 −22 xml/src/main/java/org/jboss/jsr299/tck/tests/xml/resource/resource/Another.java
  137. +0 −36 xml/src/main/java/org/jboss/jsr299/tck/tests/xml/resource/resource/DeclarationOfResourceTest.java
  138. +0 −56 xml/src/main/java/org/jboss/jsr299/tck/tests/xml/schema/NamespacesValidatedTest.java
  139. +0 −17 xml/src/main/java/org/jboss/jsr299/tck/tests/xml/schema/Order.java
  140. +0 −30 xml/src/main/java/org/jboss/jsr299/tck/tests/xml/schema/StandardSchemaLocationTest.java
  141. +0 −2 xml/src/main/resources/META-INF/jboss-test-harness.properties
  142. +0 −5 xml/src/main/resources/META-INF/tck-unit.properties
  143. +0 −10 xml/src/main/resources/README.TXT
  144. BIN xml/src/main/resources/images/4.1.aa.png
  145. +0 −11 xml/src/main/resources/org/jboss/jsr299/tck/tests/implementation/simple/lifecycle/beans.xml
  146. +0 −9 .../jboss/jsr299/tck/tests/xml/annotationtypes/notvalidxml/bindingtype/multipledeclaration/beans.xml
  147. +0 −6 ...rg/jboss/jsr299/tck/tests/xml/annotationtypes/notvalidxml/bindingtype/notannotationtype/beans.xml
  148. +0 −6 ...rces/org/jboss/jsr299/tck/tests/xml/annotationtypes/notvalidxml/bindingtype/notjavatype/beans.xml
  149. +0 −7 ...299/tck/tests/xml/annotationtypes/notvalidxml/interceptorbindingtype/childnotannotation/beans.xml
  150. +0 −7 ...sr299/tck/tests/xml/annotationtypes/notvalidxml/interceptorbindingtype/childnotjavatype/beans.xml
  151. +0 −9 ...99/tck/tests/xml/annotationtypes/notvalidxml/interceptorbindingtype/multipledeclaration/beans.xml
  152. +0 −6 ...r299/tck/tests/xml/annotationtypes/notvalidxml/interceptorbindingtype/notannotationtype/beans.xml
  153. +0 −6 ...oss/jsr299/tck/tests/xml/annotationtypes/notvalidxml/interceptorbindingtype/notjavatype/beans.xml
  154. +0 −7 ...ss/jsr299/tck/tests/xml/annotationtypes/notvalidxml/interceptorbindingtype/notvalidtype/beans.xml
  155. +0 −7 ...rg/jboss/jsr299/tck/tests/xml/annotationtypes/notvalidxml/stereotype/childnotannotation/beans.xml
  156. +0 −7 .../org/jboss/jsr299/tck/tests/xml/annotationtypes/notvalidxml/stereotype/childnotjavatype/beans.xml
  157. +0 −9 ...g/jboss/jsr299/tck/tests/xml/annotationtypes/notvalidxml/stereotype/multipledeclaration/beans.xml
  158. +0 −6 ...org/jboss/jsr299/tck/tests/xml/annotationtypes/notvalidxml/stereotype/notannotationtype/beans.xml
  159. +0 −6 ...urces/org/jboss/jsr299/tck/tests/xml/annotationtypes/notvalidxml/stereotype/notjavatype/beans.xml
  160. +0 −7 ...rces/org/jboss/jsr299/tck/tests/xml/annotationtypes/notvalidxml/stereotype/notvalidtype/beans.xml
  161. +0 −9 ...rces/org/jboss/jsr299/tck/tests/xml/declaration/deployment/notvalid/multipledeclaration/beans.xml
  162. +0 −8 ...ources/org/jboss/jsr299/tck/tests/xml/declaration/deployment/notvalid/notdeploymenttype/beans.xml
  163. +0 −8 ...in/resources/org/jboss/jsr299/tck/tests/xml/declaration/deployment/notvalid/notjavatype/beans.xml
  164. +0 −10 xml/src/main/resources/org/jboss/jsr299/tck/tests/xml/metadata/foo/schema.xsd
  165. +0 −8 xml/src/main/resources/org/jboss/jsr299/tck/tests/xml/namespace/aggregation/beans.xml
  166. +0 −9 xml/src/main/resources/org/jboss/jsr299/tck/tests/xml/namespace/aggregation/multipleTypes/beans.xml
  167. +0 −3 xml/src/main/resources/org/jboss/jsr299/tck/tests/xml/namespace/aggregation/multipleTypes/namespace
  168. +0 −2 xml/src/main/resources/org/jboss/jsr299/tck/tests/xml/namespace/aggregation/namespace
  169. +0 −37 xml/src/main/resources/org/jboss/jsr299/tck/tests/xml/namespace/javaee/pkg/beans.xml
  170. +0 −13 xml/src/main/resources/org/jboss/jsr299/tck/tests/xml/namespace/javatypes/array-beans.xml
  171. +0 −13 xml/src/main/resources/org/jboss/jsr299/tck/tests/xml/namespace/javatypes/member-beans.xml
  172. +0 −21 xml/src/main/resources/org/jboss/jsr299/tck/tests/xml/namespace/javatypes/primitive-beans.xml
  173. +0 −10 xml/src/main/resources/org/jboss/jsr299/tck/tests/xml/namespace/javatypes/typeparam-beans.xml
  174. +0 −7 xml/src/main/resources/org/jboss/jsr299/tck/tests/xml/namespace/notdeclared/beans.xml
  175. +0 −12 xml/src/main/resources/org/jboss/jsr299/tck/tests/xml/resource/ejb/beans.xml
  176. +0 −8 xml/src/main/resources/org/jboss/jsr299/tck/tests/xml/resource/ejb/ejb-jar.xml
  177. +0 −19 xml/src/main/resources/org/jboss/jsr299/tck/tests/xml/resource/ejb/web.xml
  178. +0 −13 xml/src/main/resources/org/jboss/jsr299/tck/tests/xml/resource/persistenceContext/beans.xml
  179. +0 −9 xml/src/main/resources/org/jboss/jsr299/tck/tests/xml/resource/persistenceContext/persistence.xml
  180. +0 −11 xml/src/main/resources/org/jboss/jsr299/tck/tests/xml/resource/resource/beans.xml
  181. +0 −1,966 xml/src/main/resources/tck-audit.xml
  182. +0 −26 xml/src/main/resources/tck-tests.xml
View
6 .gitignore
@@ -0,0 +1,6 @@
+target
+.project
+.settings
+.classpath
+
+test-output
View
0 ...s/impl/packaging/jsr299/default/beans.xml → api/src/main/resources/.gitignore
File renamed without changes.
View
0 .../src/test/java/org/jboss/jsr299/tck/test/impl/packaging/declarative/standalone/.gitignore
No changes.
View
0 ...src/test/java/org/jboss/jsr299/tck/test/impl/packaging/descriptors/subpackages/.gitignore
No changes.
View
0 impl/src/test/java/org/jboss/jsr299/tck/test/impl/packaging/scanner/.gitignore
No changes.
View
0 ...test/resources/org/jboss/jsr299/tck/test/impl/packaging/declarative/standalone/.gitignore
No changes.
View
292 interceptor/pom.xml
@@ -1,292 +0,0 @@
-<?xml version="1.0"?>
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <parent>
- <artifactId>parent</artifactId>
- <groupId>org.jboss.jsr299.tck</groupId>
- <version>1.0.0-SNAPSHOT</version>
- </parent>
- <modelVersion>4.0.0</modelVersion>
- <groupId>org.jboss.jsr299.tck</groupId>
- <artifactId>jsr299-tck-interceptor-decorator</artifactId>
- <name>JSR-299 TCK tests and harness (Interceptors and Decorators)</name>
-
- <dependencies>
-
- <dependency>
- <groupId>javax.enterprise</groupId>
- <artifactId>cdi-api</artifactId>
- </dependency>
-
- <dependency>
- <groupId>org.jboss.jsr299.tck</groupId>
- <artifactId>jsr299-tck-api</artifactId>
- </dependency>
-
- <dependency>
- <groupId>org.jboss.test-harness</groupId>
- <artifactId>jboss-test-harness</artifactId>
- </dependency>
-
- <dependency>
- <groupId>org.testng</groupId>
- <artifactId>testng</artifactId>
- <classifier>jdk15</classifier>
- </dependency>
-
- <dependency>
- <groupId>javax.servlet</groupId>
- <artifactId>servlet-api</artifactId>
- </dependency>
-
- <dependency>
- <groupId>javax.transaction</groupId>
- <artifactId>jta</artifactId>
- </dependency>
-
- <dependency>
- <groupId>org.hibernate</groupId>
- <artifactId>tck-utils-api</artifactId>
- </dependency>
-
- <dependency>
- <groupId>org.jboss.ejb3</groupId>
- <artifactId>jboss-ejb3-api</artifactId>
- <exclusions>
- <exclusion>
- <artifactId>jboss-jaxrpc</artifactId>
- <groupId>jbossws</groupId>
- </exclusion>
- <exclusion>
- <artifactId>jboss-transaction-api</artifactId>
- <groupId>org.jboss.javaee</groupId>
- </exclusion>
- <exclusion>
- <artifactId>jboss-jaxrpc</artifactId>
- <groupId>jboss.jbossws</groupId>
- </exclusion>
- </exclusions>
- </dependency>
-
- <dependency>
- <groupId>javax.annotation</groupId>
- <artifactId>jsr250-api</artifactId>
- </dependency>
-
- <dependency>
- <groupId>log4j</groupId>
- <artifactId>log4j</artifactId>
- </dependency>
-
- <dependency>
- <groupId>javax.el</groupId>
- <artifactId>el-api</artifactId>
- </dependency>
-
- <dependency>
- <groupId>javax.faces</groupId>
- <artifactId>jsf-api</artifactId>
- </dependency>
-
- <dependency>
- <groupId>javax.persistence</groupId>
- <artifactId>persistence-api</artifactId>
- </dependency>
-
- <dependency>
- <groupId>commons-httpclient</groupId>
- <artifactId>commons-httpclient</artifactId>
- </dependency>
-
- <dependency>
- <groupId>net.sourceforge.htmlunit</groupId>
- <artifactId>htmlunit</artifactId>
- </dependency>
-
- </dependencies>
-
- <build>
- <defaultGoal>install</defaultGoal>
- <plugins>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>build-helper-maven-plugin</artifactId>
- <version>1.2</version>
- <executions>
- <execution>
- <id>attach-artifacts</id>
- <phase>package</phase>
- <goals>
- <goal>attach-artifact</goal>
- </goals>
- <configuration>
- <artifacts>
- <artifact>
- <file>${basedir}/src/main/resources/tck-tests.xml</file>
- <type>xml</type>
- <classifier>suite</classifier>
- </artifact>
- <artifact>
- <file>${basedir}/src/main/resources/tck-audit.xml</file>
- <type>xml</type>
- <classifier>audit</classifier>
- </artifact>
- </artifacts>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-dependency-plugin</artifactId>
- <executions>
- <execution>
- <id>copy-in-container-dependencies</id>
- <phase>compile</phase>
- <goals>
- <goal>copy</goal>
- </goals>
- <configuration>
- <outputDirectory>${project.build.outputDirectory}/lib</outputDirectory>
- <stripVersion>true</stripVersion>
- <artifactItems>
- <artifactItem>
- <groupId>org.jboss.test-harness</groupId>
- <artifactId>jboss-test-harness</artifactId>
- <overWrite>true</overWrite>
- </artifactItem>
- </artifactItems>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
-
- <profiles>
- <profile>
- <id>tck-audit</id>
- <activation>
- <property>
- <name>tck-audit</name>
- </property>
- </activation>
- <dependencies>
- <dependency>
- <groupId>org.hibernate</groupId>
- <artifactId>tck-utils-impl</artifactId>
- </dependency>
- </dependencies>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <configuration>
- <source>1.5</source>
- <target>1.5</target>
- <compilerArgument>-AauditXml=${basedir}/src/main/resources/tck-audit.xml</compilerArgument>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-enforcer-plugin</artifactId>
- <executions>
- <execution>
- <id>enforce-versions</id>
- <goals>
- <goal>enforce</goal>
- </goals>
- <configuration>
- <rules>
- <requireJavaVersion>
- <version>1.6</version>
- </requireJavaVersion>
- </rules>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>build-helper-maven-plugin</artifactId>
- <version>1.2</version>
- <executions>
- <execution>
- <id>attach-artifacts</id>
- <phase>package</phase>
- <goals>
- <goal>attach-artifact</goal>
- </goals>
- <configuration>
- <artifacts>
- <artifact>
- <file>${basedir}/src/main/resources/tck-tests.xml</file>
- <type>xml</type>
- <classifier>suite</classifier>
- </artifact>
- <artifact>
- <file>${basedir}/src/main/resources/tck-audit.xml</file>
- <type>xml</type>
- <classifier>audit</classifier>
- </artifact>
- <artifact>
- <file>../target/coverage.html</file>
- <type>html</type>
- <classifier>coverage</classifier>
- </artifact>
- </artifacts>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- <defaultGoal>compile</defaultGoal>
- </build>
- </profile>
-
- <profile>
- <id>write-artifacts-to-disk</id>
- <activation>
- <property>
- <name>dumpArtifacts</name>
- </property>
- </activation>
- <build>
- <plugins>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>exec-maven-plugin</artifactId>
- <executions>
- <execution>
- <id>generate-jsr-299-artifacts</id>
- <phase>package</phase>
- <goals>
- <goal>java</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <mainClass>org.jboss.jsr299.tck.api.TCK</mainClass>
- <systemProperties>
- <systemProperty>
- <key>dumpArtifacts</key>
- <value>true</value>
- </systemProperty>
- <systemProperty>
- <key>org.jboss.jsr299.tck.outputDirectory</key>
- <value>target/jsr299-artifacts</value>
- </systemProperty>
- <systemProperty>
- <key>org.jboss.jsr299.tck.libraryDirectory</key>
- <value>${libaryDir}</value>
- </systemProperty>
- </systemProperties>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </profile>
-
- </profiles>
-
-</project>
View
144 interceptor/src/main/java/org/jboss/jsr299/tck/AbstractJSR299Test.java
@@ -1,144 +0,0 @@
-package org.jboss.jsr299.tck;
-
-import java.io.ByteArrayInputStream;
-import java.io.ByteArrayOutputStream;
-import java.io.IOException;
-import java.io.ObjectInputStream;
-import java.io.ObjectOutputStream;
-import java.lang.annotation.Annotation;
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.List;
-import java.util.Set;
-
-import javax.context.Context;
-import javax.inject.manager.Manager;
-
-import org.jboss.jsr299.tck.api.JSR299Configuration;
-import org.jboss.jsr299.tck.impl.JSR299ConfigurationImpl;
-
-public abstract class AbstractJSR299Test extends org.jboss.testharness.AbstractTest
-{
-
- protected abstract static class RunInDependentContext
- {
-
- protected void setup()
- {
- getCurrentConfiguration().getContexts().setActive(getCurrentConfiguration().getContexts().getDependentContext());
- }
-
- protected void cleanup()
- {
- getCurrentConfiguration().getContexts().setInactive(getCurrentConfiguration().getContexts().getDependentContext());
- }
-
- public final void run() throws Exception
- {
- try
- {
- setup();
- execute();
- }
- finally
- {
- cleanup();
- }
- }
-
- protected JSR299Configuration getCurrentConfiguration()
- {
- return JSR299ConfigurationImpl.get();
- }
-
- protected abstract void execute() throws Exception;
-
- }
-
- private Manager currentManager;
-
- protected void setCurrentManager(Manager currentManager)
- {
- this.currentManager = currentManager;
- }
-
-
- protected Manager getCurrentManager()
- {
- return currentManager;
- }
-
- protected byte[] serialize(Object instance) throws IOException
- {
- ByteArrayOutputStream bytes = new ByteArrayOutputStream();
- ObjectOutputStream out = new ObjectOutputStream(bytes);
- out.writeObject(instance);
- return bytes.toByteArray();
- }
-
- protected Object deserialize(byte[] bytes) throws IOException, ClassNotFoundException
- {
- ObjectInputStream in = new ObjectInputStream(new ByteArrayInputStream(bytes));
- return in.readObject();
- }
-
- protected void setContextActive(Context context)
- {
- getCurrentConfiguration().getContexts().setActive(context);
- }
-
- protected void setContextInactive(Context context)
- {
- getCurrentConfiguration().getContexts().setInactive(context);
- }
-
- protected void destroyContext(Context context)
- {
- getCurrentConfiguration().getContexts().destroyContext(context);
- }
-
- protected JSR299Configuration getCurrentConfiguration()
- {
- return JSR299ConfigurationImpl.get();
- }
-
- @Override
- public void beforeMethod()
- {
- super.beforeMethod();
- setCurrentManager(getCurrentConfiguration().getManagers().getManager());
- }
-
- @Override
- public void afterMethod()
- {
- super.afterMethod();
- setCurrentManager(null);
- }
-
- /**
- * Checks if all annotations are in a given set of annotations
- *
- * @param annotations The annotation set
- * @param annotationTypes The annotations to match
- * @return True if match, false otherwise
- */
- public boolean annotationSetMatches(Set<Annotation> annotations, Class<? extends Annotation>... annotationTypes)
- {
- List<Class<? extends Annotation>> annotationTypeList = new ArrayList<Class<? extends Annotation>>();
- annotationTypeList.addAll(Arrays.asList(annotationTypes));
- for (Annotation annotation : annotations)
- {
- if (annotationTypeList.contains(annotation.annotationType()))
- {
- annotationTypeList.remove(annotation.annotationType());
- }
- else
- {
- return false;
- }
- }
- return annotationTypeList.size() == 0;
- }
-
-}
View
97 interceptor/src/main/java/org/jboss/jsr299/tck/ForwardingBean.java
@@ -1,97 +0,0 @@
-package org.jboss.jsr299.tck;
-
-import java.lang.annotation.Annotation;
-import java.lang.reflect.Type;
-import java.util.Set;
-
-import javax.context.CreationalContext;
-import javax.enterprise.inject.spi.Bean;
-import javax.inject.manager.InjectionPoint;
-import javax.inject.manager.Manager;
-
-public abstract class ForwardingBean<T> implements Bean<T>
-{
-
- protected ForwardingBean(Manager manager)
- {
- super(manager);
- }
-
- protected abstract Bean<T> delegate();
-
- @Override
- public Set<Annotation> getBindings()
- {
- return delegate().getBindings();
- }
-
- @Override
- public Class<? extends Annotation> getDeploymentType()
- {
- return delegate().getDeploymentType();
- }
-
- @Override
- public Set<? extends InjectionPoint> getInjectionPoints()
- {
- return delegate().getInjectionPoints();
- }
-
- @Override
- public String getName()
- {
- return delegate().getName();
- }
-
- @Override
- public Class<? extends Annotation> getScopeType()
- {
- return delegate().getScopeType();
- }
-
- @Override
- public Set<Type> getTypes()
- {
- return delegate().getTypes();
- }
-
- @Override
- public boolean isNullable()
- {
- return delegate().isNullable();
- }
-
- @Override
- public boolean isSerializable()
- {
- return delegate().isSerializable();
- }
-
- public T create(CreationalContext<T> creationalContext)
- {
- return delegate().create(creationalContext);
- }
-
- public void destroy(T instance)
- {
- delegate().destroy(instance);
- }
-
- @Override
- public boolean equals(Object obj)
- {
- return delegate().equals(obj);
- }
-
- @Override
- public String toString()
- {
- return delegate().toString();
- }
-
- @Override
- public int hashCode()
- {
- return delegate().hashCode();
- }
-}
View
98 interceptor/src/main/java/org/jboss/jsr299/tck/impl/JSR299ConfigurationImpl.java
@@ -1,98 +0,0 @@
-package org.jboss.jsr299.tck.impl;
-
-import javax.context.Context;
-
-import org.jboss.jsr299.tck.api.JSR299Configuration;
-import org.jboss.jsr299.tck.spi.Beans;
-import org.jboss.jsr299.tck.spi.Contexts;
-import org.jboss.jsr299.tck.spi.EL;
-import org.jboss.jsr299.tck.spi.Managers;
-import org.jboss.testharness.impl.ConfigurationImpl;
-
-public class JSR299ConfigurationImpl extends ConfigurationImpl implements JSR299Configuration
-{
-
- public static JSR299Configuration get()
- {
- return ConfigurationImpl.get(JSR299Configuration.class);
- }
-
- public static final String INTEGRATION_TEST_PACKAGE_NAME = "org.jboss.jsr299.tck.integration";
- public static final String UNIT_TEST_PACKAGE_NAME = "org.jboss.jsr299.tck.unit";
-
- private Beans beans;
- private Contexts<? extends Context> contexts;
- private Managers managers;
- private EL el;
-
- protected JSR299ConfigurationImpl()
- {
- }
-
- public JSR299ConfigurationImpl(JSR299Configuration configuration)
- {
- this.beans = configuration.getBeans();
- this.contexts = configuration.getContexts();
- this.managers = configuration.getManagers();
- this.el = configuration.getEl();
- }
-
-
- public Beans getBeans()
- {
- return beans;
- }
-
- public void setBeans(Beans beans)
- {
- this.beans = beans;
- }
-
- @SuppressWarnings("unchecked")
- public <T extends Context> Contexts<T> getContexts()
- {
- return (Contexts<T>) contexts;
- }
-
- public <T extends Context> void setContexts(Contexts<T> contexts)
- {
- this.contexts = contexts;
- }
-
- public Managers getManagers()
- {
- return managers;
- }
-
- public void setManagers(Managers managers)
- {
- this.managers = managers;
- }
-
- public EL getEl()
- {
- return el;
- }
-
- public void setEl(EL el)
- {
- this.el = el;
- }
-
- @Override
- public String toString()
- {
- StringBuilder configuration = new StringBuilder();
- configuration.append("JSR 299 TCK Configuration\n");
- configuration.append("-----------------\n");
- configuration.append("\tBeans: ").append(getBeans()).append("\n");
- configuration.append("\tContainers: ").append(getContainers()).append("\n");
- configuration.append("\tContexts: ").append(getContexts()).append("\n");
- configuration.append("\tEL: ").append(getEl()).append("\n");
- configuration.append("\tManagers: ").append(getManagers()).append("\n");
- configuration.append("\n");
- configuration.append(super.toString());
- return configuration.toString();
- }
-
-}
View
45 ...or/src/main/java/org/jboss/jsr299/tck/impl/JSR299PropertiesBasedConfigurationBuilder.java
@@ -1,45 +0,0 @@
-package org.jboss.jsr299.tck.impl;
-
-import java.io.IOException;
-
-import javax.context.Context;
-
-import org.jboss.jsr299.tck.AbstractJSR299Test;
-import org.jboss.jsr299.tck.api.JSR299Configuration;
-import org.jboss.jsr299.tck.literals.NewLiteral;
-import org.jboss.jsr299.tck.spi.Beans;
-import org.jboss.jsr299.tck.spi.Contexts;
-import org.jboss.jsr299.tck.spi.EL;
-import org.jboss.jsr299.tck.spi.Managers;
-import org.jboss.testharness.impl.PropertiesBasedConfigurationBuilder;
-
-public class JSR299PropertiesBasedConfigurationBuilder extends PropertiesBasedConfigurationBuilder<JSR299Configuration>
-{
-
- public JSR299PropertiesBasedConfigurationBuilder() throws IOException
- {
- super(new JSR299ConfigurationImpl());
- super.getConfiguration().getExtraPackages().add(NewLiteral.class.getPackage().getName());
- super.getConfiguration().getExtraPackages().add(AbstractJSR299Test.class.getPackage().getName());
- super.getConfiguration().getExtraPackages().add(JSR299ConfigurationImpl.class.getPackage().getName());
- super.getConfiguration().getExtraPackages().add(JSR299Configuration.class.getPackage().getName());
- super.getConfiguration().getExtraPackages().add(Managers.class.getPackage().getName());
- super.getConfiguration().getExtraDeploymentProperties().add("org.jboss.testharness.api.ConfigurationBuilder=org.jboss.jsr299.tck.impl.JSR299PropertiesBasedConfigurationBuilder");
- }
-
- @Override
- public JSR299PropertiesBasedConfigurationBuilder init()
- {
- super.init();
- getConfiguration().setManagers(getInstanceValue(Managers.PROPERTY_NAME, Managers.class, true));
- getConfiguration().setBeans(getInstanceValue(Beans.PROPERTY_NAME, Beans.class, true));
- getConfiguration().setEl(getInstanceValue(EL.PROPERTY_NAME, EL.class, true));
-
- @SuppressWarnings("unchecked")
- Contexts<? extends Context> instanceValue = getInstanceValue(Contexts.PROPERTY_NAME, Contexts.class, true);
-
- getConfiguration().setContexts(instanceValue);
- return this;
- }
-
-}
View
11 interceptor/src/main/java/org/jboss/jsr299/tck/literals/CurrentLiteral.java
@@ -1,11 +0,0 @@
-package org.jboss.jsr299.tck.literals;
-
-import javax.inject.AnnotationLiteral;
-import javax.inject.Current;
-
-/**
- * Annotation literal for @Current
- *
- * @author Pete Muir
- */
-public class CurrentLiteral extends AnnotationLiteral<Current> implements Current {}
View
9 interceptor/src/main/java/org/jboss/jsr299/tck/literals/NewLiteral.java
@@ -1,9 +0,0 @@
-package org.jboss.jsr299.tck.literals;
-
-import javax.inject.AnnotationLiteral;
-import javax.inject.New;
-
-public class NewLiteral extends AnnotationLiteral<New> implements New
-{
-
-}
View
2 interceptor/src/main/resources/META-INF/jboss-test-harness.properties
@@ -1,2 +0,0 @@
-org.jboss.testharness.api.ConfigurationBuilder=org.jboss.jsr299.tck.impl.JSR299PropertiesBasedConfigurationBuilder
-org.jboss.testharness.testPackage=org.jboss.jsr299.tck.tests
View
5 interceptor/src/main/resources/META-INF/tck-unit.properties
@@ -1,5 +0,0 @@
-fisheye_base_url=http\://fisheye.jboss.org/browse/Weld/cdi-tck/trunk/impl/src/main/java
-svn_base_url=http\://anonsvn.jboss.org/repos/weld/cdi-tck/trunk/impl/src/main/java/
-pass_threshold=75
-fail_threshold=50
-unimplemented_test_groups=stub,broken
View
7 interceptor/src/main/resources/org/jboss/testharness/impl/packaging/ear/ejb-jar.xml
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<ejb-jar xmlns="http://java.sun.com/xml/ns/javaee"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd"
- version="3.0">
-
-</ejb-jar>
View
410 interceptor/src/main/resources/tck-audit.xml
@@ -1,410 +0,0 @@
-<specification
- xmlns="http://jboss.com/products/weld/cdi-tck/audit"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://jboss.com/products/weld/cdi-tck/audit http://snapshots.jboss.org/maven2/org/hibernate/tck-utils-api/0.9-SNAPSHOT/tck-utils-api-0.9-20090220.134140-13-audit.xsd"
- name="JSR-299: Java Contexts and Dependency Injection"
- version="Revised Public Review Draft">
-
- <section id="2" title="Bean definition">
-
- <assertion id="f">
- <text>A bean comprises of a set of interceptor bindings</text>
- </assertion>
-
- </section>
-
- <section id="2.7.1.2" title="Specifying interceptor bindings for a stereotype">
-
- <assertion id="a">
- <text>A stereotype may declare zero interceptor bindings</text>
- </assertion>
-
- <assertion id="b">
- <text>A stereotype may declare one interceptor binding</text>
- </assertion>
-
- <assertion id="c">
- <text>A stereotype may declare multiple interceptor bindings</text>
- </assertion>
-
- </section>
-
- <section id="3" title="Bean Implementation">
-
- </section>
-
-
- <section id="3.2" title="Simple beans">
-
- <assertion id="cb">
- <text>The bean class of a simple bean may not be an abstract class, _unless the simple bean is a decorator_</text>
- </assertion>
-
- <assertion id="d">
- <text>If the bean class of a simple bean is annotated with both the |@Interceptor| and |@Decorator| stereotypes, a |DefinitionException| is thrown by the container at deployment time.</text>
- </assertion>
-
- </section>
-
- <section id="3.2.1" title="Which Java classes are beans?">
-
- <assertion id="da">
- <text>A top-level abstract Java class is a simple bean if it is annotated |@Decorator|.</text>
- </assertion>
-
- </section>
-
- <section id="3.2.5" title="Simple beans with the @New binding">
- <assertion id="c">
- <text>Every class that satisfies the requirements of Section 3.2.1, "Which Java classes are beans?" is a bean, with scope, deployment type and bindings defined using annotations. Additionally, for each such simple bean, a second simple bean exists which has _the same interceptor bindings defined by annotations_.</text>
- </assertion>
-
- </section>
-
- <section id="3.3" title="Session beans">
-
- <assertion id="f">
- <text>If the bean class of a session bean is annotated |@Interceptor|, a |DefinitionException| is thrown by the container at deployment time</text>
- </assertion>
-
- <assertion id="g">
- <text>If the bean class of a session bean is annotated |@Decorator|, a |DefinitionException| is thrown by the container at deployment time</text>
- </assertion>
- </section>
-
- <section id="3.3.6" title="Session beans with the @New binding">
-
-
- <assertion id="c">
- <text>Every EJB that satisfies the requirements of Section 3.3.2, "Which EJBs are beans?" is a bean, with scope, deployment type and bindings defined using annotations. Additionally, for each such session bean, a second bean exists which has the same interceptor bindings defined by annotations</text>
- </assertion>
-
- </section>
-
- <section id="3.8" title="Injected fields">
-
- <assertion id="i">
- <text>If a field is a decorator delegate attribute, it is not an injected field</text>
- </assertion>
- </section>
-
- <section id="3.10" title="Support for Common Annotations">
-
- <assertion id="g">
- <text>Interception, as defined in |javax.interceptor| is provided by the container when annotations are applied to the bean class of a simple bean</text>
- </assertion>
-
- </section>
-
- <section id="4" title="Inheritance, specialization and realization">
-
- </section>
-
- <section id="4.1" title="Inheritance of type-level metadata">
-
- <assertion id="ac">
- <text>For class X which is extended _directly_ by the bean class of a _simple_ bean Y, if X is annotated with a _interceptor binding type_ Z then Y inherits the annotation if and only if Z declares the |@Inherited| meta-annotation and Y does not declare an annotation of type Z.</text>
- </assertion>
-
- <assertion id="af">
- <text>For class X which is extended _directly_ by the bean class of a _session_ bean Y, if X is annotated with a _interceptor binding type_ Z then Y inherits the annotation if and only if Z declares the |@Inherited| meta-annotation and Y does not declare an annotation of type Z.</text>
- </assertion>
-
- <assertion id="ai">
- <text>For class X which is extended _indirectly_ by the bean class of a _simple_ bean Y, if X is annotated with a _interceptor binding type_ Z then Y inherits the annotation if and only if Z declares the |@Inherited| meta-annotation and neither Y nor any intermediate class that is a subclass of X and a superclass of Y declares an annotation of type Z.</text>
- </assertion>
-
- <assertion id="al">
- <text>For class X which is extended _indirectly_ by the bean class of a _session_ bean Y, if X is annotated with a _interceptor binding type_ Z then Y inherits the annotation if and only if Z declares the |@Inherited| meta-annotation and neither Y nor any intermediate class that is a subclass of X and a superclass of Y declares an annotation of type Z.</text>
- </assertion>
-
- </section>
-
- <section id="4.2" title="Inheritance of member-level metadata">
-
- <assertion id="ca">
- <text>For class X which is extended _directly_ by the bean class of a _simple_ bean Y, if X declares a _non-static method_ x() annotated with an interceptor binding type Z then Y inherits the binding if and only if Y does not override the method x().</text>
- </assertion>
-
- <assertion id="cb">
- <text>For class X which is extended _directly_ by the bean class of a _session_ bean Y, if X declares a _non-static method_ x() annotated with an interceptor binding type Z then Y inherits the binding if and only if Y does not override the method x().</text>
- </assertion>
-
- <assertion id="cc">
- <text>For class X which is extended _indirectly_ by the bean class of a _simple_ bean Y, if X declares a _non-static method_ x() annotated with an interceptor binding type Z then Y inherits the binding if and only if neither Y nor any intermediate class that is a subclass of X and a superclass of Y overrides the method x().</text>
- </assertion>
-
- <assertion id="cd">
- <text>For class X which is extended _indirectly_ by the bean class of a _session_ bean Y, if X declares a _non-static method_ x() annotated with an interceptor binding type Z then Y inherits the binding if and only if neither Y nor any intermediate class that is a subclass of X and a superclass of Y overrides the method x().</text>
- </assertion>
-
- <assertion id="fa">
- <text>For class X which is extended _directly_ by the bean class of a _simple_ bean Y, if Y is a decorator and X declares a delegate attribute x then Y inherits x if and only if Y does not define a delegate attribute</text>
- </assertion>
-
- <assertion id="fb">
- <text>For class X which is extended _directly_ by the bean class of a _session_ bean Y, if Y is a decorator and X declares a delegate attribute x then Y inherits x if and only if neither Y does not define a delegate attribute</text>
- </assertion>
-
- <assertion id="fc">
- <text>For class X which is extended _indirectly_ by the bean class of a _simple_ bean Y, if Y is a decorator and X declares a delegate attribute x then Y inherits x if and only if neither Y nor any intermediate class that is a subclass of X and a superclass of Y defines a delegate attribute</text>
- </assertion>
-
- <assertion id="fd">
- <text>For class X which is extended _indirectly_ by the bean class of a _session_ bean Y, if Y is a decorator and X declares a delegate attribute x then Y inherits x if and only if neither Y nor any intermediate class that is a subclass of X and a superclass of Y defines a delegate attribute</text>
- </assertion>
-
- </section>
-
- <section id="4.4" title="Realization">
-
- </section>
-
- <section id="4.4.1" title="Using realization">
-
- <assertion id="ca">
- <text>If a generic class Y declares a non-static _producer method_ with a certain combination of scope, stereotypes, bindings and interceptor bindings, then every bean X that realizes Y also has a _producer method_ with the same scope, stereotypes and interceptor bindings. The bindings for this inherited _producer method_ consist of all bindings declared by the _producer method_ of Y, excluding all bindings of Y, together with the bindings declared explicitly by X. The deployment type of the inherited _producer method_ is the deployment type of X</text>
- </assertion>
-
- <assertion id="cb">
- <text>If a generic class Y declares a non-static _producer field_ with a certain combination of scope, stereotypes, bindings and interceptor bindings, then every bean X that realizes Y also has a _producer field_ with the same scope, stereotypes and interceptor bindings. The bindings for this inherited _producer field_ consist of all bindings declared by the _producer field_ of Y, excluding all bindings of Y, together with the bindings declared explicitly by X. The deployment type of the inherited _producer field_ is the deployment type of X</text>
- </assertion>
-
- </section>
-
- <section id="5" title="Lookup, dependency injection and EL resolution">
-
- </section>
-
- <section id="5.12" title="Injection into non-contextual objects">
-
- </section>
-
- <section id="5.12.1" title="Non-contextual instances of session beans">
-
- <assertion id="f">
- <text>The container is required to create interceptor stacks for session bean instances obtained directly from JNDI</text>
- </assertion>
-
- <assertion id="g">
- <text>The container is required to create interceptor stacks for session bean instances injected using |@EJB|</text>
- </assertion>
-
- <assertion id="h">
- <text>The container is required to create interceptor stacks for session bean instances injected using |@Resource|</text>
- </assertion>
-
- <assertion id="i">
- <text>The container is required to create interceptor stacks for session bean instances created by the container to receive remote method calls</text>
- </assertion>
-
- <assertion id="j">
- <text>The container is required to create interceptor stacks for session bean instances created by the container to receive timeouts</text>
- </assertion>
-
- <assertion id="k">
- <text>The container is required to create decorator stacks for session bean instances obtained directly from JNDI</text>
- </assertion>
-
- <assertion id="l">
- <text>The container is required to create decorator stacks for session bean instances injected using |@EJB|</text>
- </assertion>
-
- <assertion id="m">
- <text>The container is required to create decorator stacks for session bean instances injected using |@Resource|</text>
- </assertion>
-
- <assertion id="n">
- <text>The container is required to create decorator stacks for session bean instances created by the container to receive remote method calls</text>
- </assertion>
-
- <assertion id="o">
- <text>The container is required to create decorator stacks for session bean instances created by the container to receive timeouts</text>
- </assertion>
-
- <assertion id="q">
- <text>For the purposes of interceptor stack creation, the container must treat non-contextual instances of session beans as instances of the most specialized bean that specializes the bean with binding |@New| and deployment type |@Standard| defined in Section 3.3.6, "Session beans with the |@New| binding"</text>
- </assertion>
-
- <assertion id="r">
- <text>For the purposes of decorator stack creation, the container must treat non-contextual instances of session beans as instances of the most specialized bean that specializes the bean with binding |@New| and deployment type |@Standard| defined in Section 3.3.6, "Session beans with the |@New| binding"</text>
- </assertion>
-
- </section>
-
- <section id="5.12.2" title="Message-driven beans">
-
- <assertion id="b">
- <text>The container creates interceptor stacks for message-driven bean instances according to the bean class annotations</text>
- </assertion>
-
- <assertion id="c">
- <text>The container creates decorator stacks for message-driven bean instances according to the bean class annotations</text>
- </assertion>
- </section>
-
- <section id="6" title="Bean lifecycle">
-
- </section>
-
- <section id="6.2" title="Creation">
-
-
- <assertion id="b">
- <text>The |Contextual.create()| method creates the interceptor stacks and binds them to the instance</text>
- </assertion>
-
- <assertion id="c">
- <text>The |Contextual.create()| method creates the decorator stacks and binds them to the instance</text>
- </assertion>
-
- </section>
-
- <section id="6.4" title="Lifecycle of simple beans">
- <assertion id="a">
- <text>When the |create()| method of the |Bean| object that represents a simple bean is called, the container first calls the bean constructor to obtain an instance of the bean. For each constructor parameter, the container passes the object returned by |Manager.getInstanceToInject()|. The container is permitted to return an instance of a container-generated subclass of the bean class, allowing interceptor and decorator bindings</text>
- </assertion>
-
- <assertion id="h">
- <text>When the |create()| method of the |Bean| object that represents a simple bean is called, after all initializer methods are called the container builds the interceptor stacks for the instance as defined in Section A.3.10 "Interceptor stack creation"</text>
- </assertion>
-
- <assertion id="i">
- <text>When the |create()| method of the |Bean| object that represents a simple bean is called, after all initializer methods are called the container builds the decorator stacks for the instance as defined in Section A.5.8 "Decorator stack creation"</text>
- </assertion>
-
- <assertion id="j">
- <text>When the |create()| method of the |Bean| object that represents a simple bean is called, after the interceptor and decorator stacks are built the container calls the |@PostConstruct| method, if any</text>
- </assertion>
-
- </section>
-
- <section id="6.11" title="Lifecycle of EJBs">
-
- <assertion id="d">
- <text>When the EJB container creates a new instance of an EJB, after Java EE injection has been performed and before the |@PostConstruct| callback occurs the container builds the interceptor stacks for the instance as defined in Section A.3.10, "Interceptor stack creation" and Section A.5.8, "Decorator stack creation" and binds them to the instance</text>
- </assertion>
-
- <assertion id="e">
- <text>When the EJB container creates a new instance of an EJB, after Java EE injection has been performed and before the |@PostConstruct| callback occurs the container builds the decorator stacks for the instance as defined in Section A.3.10, "Interceptor stack creation" and Section A.5.8, "Decorator stack creation" and binds them to the instance</text>
- </assertion>
-
- </section>
-
- <section id="8" title="Scopes and contexts">
-
- </section>
-
- <section id="8.3" title="Dependent pseudo-scope">
-
- <assertion id="n">
- <text>The |@Dependent| scope is even active during invocation of interceptors and decorators of observer methods and interceptors and decorators of |@PostConstruct| and |@PreDestroy| callbacks</text>
- </assertion>
-
- </section>
-
- <section id="8.3.1" title="Dependent objects">
-
- <assertion id="b">
- <text>Instances of interceptors or decorators with scope |@Dependent| are also dependent objects of the bean they intercept or decorate</text>
- </assertion>
- </section>
-
- <section id="9" title="XML based metadata">
-
- </section>
-
- <section id="9.12" title="Deployment declarations">
-
- </section>
-
- <section id="9.12.2" title="The &lt;Interceptors&gt; declaration">
- <assertion id="a">
- <text>Each direct child element of an |&lt;Interceptors&gt;| element is interpreted as the declaring an enabled interceptor, as specified in Section A.3.7, "Interceptor enablement and ordering".</text>
- </assertion>
-
- <assertion id="b">
- <text>Each child element is interpreted as a Java class. If no such Java class exists in the classpath, a |DefinitionException| is thrown by the container at deployment time.</text>
- </assertion>
-
- <assertion id="c">
- <text>If the same interceptor is declared more than once, a |DefinitionException| is thrown by the container at deployment time.</text>
- </assertion>
-
- </section>
-
- <section id="9.12.3" title="The &lt;Decorators&gt; declaration">
- <assertion id="a">
- <text>Each direct child element of a |&lt;Decorators&gt;| element is interpreted as the declaring an enabled decorator, as specified in Section A.5.5, "Decorator enablement and ordering".</text>
- </assertion>
-
- <assertion id="b">
- <text>Each child element is interpreted as a Java class. If no such Java class exists in the classpath, a |DefinitionException| is thrown by the container at deployment time.</text>
- </assertion>
-
- <assertion id="c">
- <text>If the same decorator is declared more than once, a |DefinitionException| is thrown by the container at deployment time.</text>
- </assertion>
- </section>
-
- <section id="11" title="Packaging and Deployment">
-
- </section>
-
- <section id="11.2" title="Bean discovery">
-
- <assertion id="p">
- <text>First, the container discovers all ~binding types, stereotypes and~ interceptor binding types declared in XML, according to the rules of Section 9.4, "Stereotype, binding type and interceptor binding type declarations".</text>
- </assertion>
-
- <assertion id="aa">
- <text>Next, the container determines which ~beans,~ interceptors ~and decorators~ are enabled, according to the rules defined in Section 2.5.6, "Enabled deployment types", Section A.3.7, "Interceptor enablement and ordering" and Section A.5.5, "Decorator enablement and ordering", taking into account any ~|&lt;Deploy&gt;|,~ |&lt;Interceptors&gt;| ~and |&lt;Decorators&gt;|~ declarations in the |beans.xml| files.</text>
- </assertion>
-
- <assertion id="ab">
- <text>Next, the container determines which ~beans, interceptors and~ decorators are enabled, according to the rules defined in Section 2.5.6, "Enabled deployment types", Section A.3.7, "Interceptor enablement and ordering" and Section A.5.5, "Decorator enablement and ordering", taking into account any ~|&lt;Deploy&gt;|, |&lt;Interceptors&gt;| and~ |&lt;Decorators&gt;| declarations in the |beans.xml| files.</text>
- </assertion>
-
- <assertion id="ad">
- <text>For each enabled interceptor, the container creates an instance of |Interceptor| and registers it by calling |Manager.addInterceptor()|</text>
- </assertion>
-
- <assertion id="ae">
- <text>For each enabled decorator, the container creates an instance of |Decorator| and registers it by calling |Manager.addDecorator()|.</text>
- </assertion>
-
- </section>
-
- <section id="11.4" title="Providing additional XML based metadata">
-
- </section>
-
- <section id="11.6" title="Activities">
-
- <assertion id="e">
- <text>Every interceptor ~and decorator~ belonging to a parent activity also belongs to the child activity ~and may be applied to any bean belonging to the child activity~</text>
- </assertion>
-
- <assertion id="f">
- <text>Every interceptor ~and decorator~ belonging to a parent activity ~also belongs to the child activity and~ may be applied to any bean belonging to the child activity</text>
- </assertion>
-
- <assertion id="g">
- <text>Every ~interceptor and~ decorator belonging to a parent activity also belongs to the child activity and~ may be applied to any bean belonging to the child activity~</text>
- </assertion>
-
- <assertion id="h">
- <text>Every ~interceptor and~ decorator belonging to a parent activity ~also belongs to the child activity and~ may be applied to any bean belonging to the child activity</text>
- </assertion>
-
- <assertion id="v">
- <text>The |addInterceptor()| ~and |addDecorator()|~ methods throw |UnsupportedOperationException| when called on a |Manager| object that represents a child activity.</text>
- </assertion>
-
- <assertion id="w">
- <text>The ~|addInterceptor()| and~ |addDecorator()| methods throw |UnsupportedOperationException| when called on a |Manager| object that represents a child activity.</text>
- </assertion>
-
- </section>
-
-</specification>
View
26 interceptor/src/main/resources/tck-tests.xml
@@ -1,26 +0,0 @@
-<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd" >
-
-<suite name="JSR-299 TCK" verbose="2" >
- <test name="JSR-299 TCK" >
- <method-selectors>
- <method-selector>
- <selector-class name="org.jboss.testharness.impl.testng.DisableIntegrationTestsMethodSelector" />
- </method-selector>
- <method-selector>
- <selector-class name="org.jboss.testharness.impl.testng.ExcludeIncontainerUnderInvestigationMethodSelector" />
- </method-selector>
- </method-selectors>
- <groups>
- <run>
- <exclude name="stub" />
- <exclude name="ri-broken" />
- <exclude name="underInvestigation" />
- <exclude name="broken" />
- </run>
- </groups>
- <packages>
- <package name="org.jboss.jsr299.tck.tests" />
- </packages>
- </test>
-
-</suite>
View
292 xml/pom.xml
@@ -1,292 +0,0 @@
-<?xml version="1.0"?>
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <parent>
- <artifactId>parent</artifactId>
- <groupId>org.jboss.jsr299.tck</groupId>
- <version>1.0.0-SNAPSHOT</version>
- </parent>
- <modelVersion>4.0.0</modelVersion>
- <groupId>org.jboss.jsr299.tck</groupId>
- <artifactId>jsr299-tck-xml-beans</artifactId>
- <name>JSR-299 TCK tests and harness (XML bean definition)</name>
-
- <dependencies>
-
- <dependency>
- <groupId>javax.enterprise</groupId>
- <artifactId>cdi-api</artifactId>
- </dependency>
-
- <dependency>
- <groupId>org.jboss.jsr299.tck</groupId>
- <artifactId>jsr299-tck-api</artifactId>
- </dependency>
-
- <dependency>
- <groupId>org.jboss.test-harness</groupId>
- <artifactId>jboss-test-harness</artifactId>
- </dependency>
-
- <dependency>
- <groupId>org.testng</groupId>
- <artifactId>testng</artifactId>
- <classifier>jdk15</classifier>
- </dependency>
-
- <dependency>
- <groupId>javax.servlet</groupId>
- <artifactId>servlet-api</artifactId>
- </dependency>
-
- <dependency>
- <groupId>javax.transaction</groupId>
- <artifactId>jta</artifactId>
- </dependency>
-
- <dependency>
- <groupId>org.hibernate</groupId>
- <artifactId>tck-utils-api</artifactId>
- </dependency>
-
- <dependency>
- <groupId>org.jboss.ejb3</groupId>
- <artifactId>jboss-ejb3-api</artifactId>
- <exclusions>
- <exclusion>
- <artifactId>jboss-jaxrpc</artifactId>
- <groupId>jbossws</groupId>
- </exclusion>
- <exclusion>
- <artifactId>jboss-transaction-api</artifactId>
- <groupId>org.jboss.javaee</groupId>
- </exclusion>
- <exclusion>
- <artifactId>jboss-jaxrpc</artifactId>
- <groupId>jboss.jbossws</groupId>
- </exclusion>
- </exclusions>
- </dependency>
-
- <dependency>
- <groupId>javax.annotation</groupId>
- <artifactId>jsr250-api</artifactId>
- </dependency>
-
- <dependency>
- <groupId>log4j</groupId>
- <artifactId>log4j</artifactId>
- </dependency>
-
- <dependency>
- <groupId>javax.el</groupId>
- <artifactId>el-api</artifactId>
- </dependency>
-
- <dependency>
- <groupId>javax.faces</groupId>
- <artifactId>jsf-api</artifactId>
- </dependency>
-
- <dependency>
- <groupId>javax.persistence</groupId>
- <artifactId>persistence-api</artifactId>
- </dependency>
-
- <dependency>
- <groupId>commons-httpclient</groupId>
- <artifactId>commons-httpclient</artifactId>
- </dependency>
-
- <dependency>
- <groupId>net.sourceforge.htmlunit</groupId>
- <artifactId>htmlunit</artifactId>
- </dependency>
-
- </dependencies>
-
- <build>
- <defaultGoal>install</defaultGoal>
- <plugins>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>build-helper-maven-plugin</artifactId>
- <version>1.2</version>
- <executions>
- <execution>
- <id>attach-artifacts</id>
- <phase>package</phase>
- <goals>
- <goal>attach-artifact</goal>
- </goals>
- <configuration>
- <artifacts>
- <artifact>
- <file>${basedir}/src/main/resources/tck-tests.xml</file>
- <type>xml</type>
- <classifier>suite</classifier>
- </artifact>
- <artifact>
- <file>${basedir}/src/main/resources/tck-audit.xml</file>
- <type>xml</type>
- <classifier>audit</classifier>
- </artifact>
- </artifacts>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-dependency-plugin</artifactId>
- <executions>
- <execution>
- <id>copy-in-container-dependencies</id>
- <phase>compile</phase>
- <goals>
- <goal>copy</goal>
- </goals>
- <configuration>
- <outputDirectory>${project.build.outputDirectory}/lib</outputDirectory>
- <stripVersion>true</stripVersion>
- <artifactItems>
- <artifactItem>
- <groupId>org.jboss.test-harness</groupId>
- <artifactId>jboss-test-harness</artifactId>
- <overWrite>true</overWrite>
- </artifactItem>
- </artifactItems>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
-
- <profiles>
- <profile>
- <id>tck-audit</id>
- <activation>
- <property>
- <name>tck-audit</name>
- </property>
- </activation>
- <dependencies>
- <dependency>
- <groupId>org.hibernate</groupId>
- <artifactId>tck-utils-impl</artifactId>
- </dependency>
- </dependencies>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <configuration>
- <source>1.5</source>
- <target>1.5</target>
- <compilerArgument>-AauditXml=${basedir}/src/main/resources/tck-audit.xml</compilerArgument>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-enforcer-plugin</artifactId>
- <executions>
- <execution>
- <id>enforce-versions</id>
- <goals>
- <goal>enforce</goal>
- </goals>
- <configuration>
- <rules>
- <requireJavaVersion>
- <version>1.6</version>
- </requireJavaVersion>
- </rules>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>build-helper-maven-plugin</artifactId>
- <version>1.2</version>
- <executions>
- <execution>
- <id>attach-artifacts</id>
- <phase>package</phase>
- <goals>
- <goal>attach-artifact</goal>
- </goals>
- <configuration>
- <artifacts>
- <artifact>
- <file>${basedir}/src/main/resources/tck-tests.xml</file>
- <type>xml</type>
- <classifier>suite</classifier>
- </artifact>
- <artifact>
- <file>${basedir}/src/main/resources/tck-audit.xml</file>
- <type>xml</type>
- <classifier>audit</classifier>
- </artifact>
- <artifact>
- <file>../target/coverage.html</file>
- <type>html</type>
- <classifier>coverage</classifier>
- </artifact>
- </artifacts>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- <defaultGoal>compile</defaultGoal>
- </build>
- </profile>
-
- <profile>
- <id>write-artifacts-to-disk</id>
- <activation>
- <property>
- <name>dumpArtifacts</name>
- </property>
- </activation>
- <build>
- <plugins>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>exec-maven-plugin</artifactId>
- <executions>
- <execution>
- <id>generate-jsr-299-artifacts</id>
- <phase>package</phase>
- <goals>
- <goal>java</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <mainClass>org.jboss.jsr299.tck.api.TCK</mainClass>
- <systemProperties>
- <systemProperty>
- <key>dumpArtifacts</key>
- <value>true</value>
- </systemProperty>
- <systemProperty>
- <key>org.jboss.jsr299.tck.outputDirectory</key>
- <value>target/jsr299-artifacts</value>
- </systemProperty>
- <systemProperty>
- <key>org.jboss.jsr299.tck.libraryDirectory</key>
- <value>${libaryDir}</value>
- </systemProperty>
- </systemProperties>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </profile>
-
- </profiles>
-
-</project>
View
144 xml/src/main/java/org/jboss/jsr299/tck/AbstractJSR299Test.java
@@ -1,144 +0,0 @@
-package org.jboss.jsr299.tck;
-
-import java.io.ByteArrayInputStream;
-import java.io.ByteArrayOutputStream;
-import java.io.IOException;
-import java.io.ObjectInputStream;
-import java.io.ObjectOutputStream;
-import java.lang.annotation.Annotation;
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.List;
-import java.util.Set;
-
-import javax.context.Context;
-import javax.inject.manager.Manager;
-
-import org.jboss.jsr299.tck.api.JSR299Configuration;
-import org.jboss.jsr299.tck.impl.JSR299ConfigurationImpl;
-
-public abstract class AbstractJSR299Test extends org.jboss.testharness.AbstractTest
-{
-
- protected abstract static class RunInDependentContext
- {
-
- protected void setup()
- {
- getCurrentConfiguration().getContexts().setActive(getCurrentConfiguration().getContexts().getDependentContext());
- }
-
- protected void cleanup()
- {
- getCurrentConfiguration().getContexts().setInactive(getCurrentConfiguration().getContexts().getDependentContext());
- }
-
- public final void run() throws Exception
- {
- try
- {
- setup();
- execute();
- }
- finally
- {
- cleanup();
- }
- }
-
- protected JSR299Configuration getCurrentConfiguration()
- {
- return JSR299ConfigurationImpl.get();
- }
-
- protected abstract void execute() throws Exception;
-
- }
-
- private Manager currentManager;
-
- protected void setCurrentManager(Manager currentManager)
- {
- this.currentManager = currentManager;
- }
-
-
- protected Manager getCurrentManager()
- {
- return currentManager;
- }
-
- protected byte[] serialize(Object instance) throws IOException
- {
- ByteArrayOutputStream bytes = new ByteArrayOutputStream();
- ObjectOutputStream out = new ObjectOutputStream(bytes);
- out.writeObject(instance);
- return bytes.toByteArray();
- }
-
- protected Object deserialize(byte[] bytes) throws IOException, ClassNotFoundException
- {
- ObjectInputStream in = new ObjectInputStream(new ByteArrayInputStream(bytes));
- return in.readObject();
- }
-
- protected void setContextActive(Context context)
- {
- getCurrentConfiguration().getContexts().setActive(context);
- }
-
- protected void setContextInactive(Context context)
- {
- getCurrentConfiguration().getContexts().setInactive(context);
- }
-
- protected void destroyContext(Context context)
- {
- getCurrentConfiguration().getContexts().destroyContext(context);
- }
-
- protected JSR299Configuration getCurrentConfiguration()
- {
- return JSR299ConfigurationImpl.get();
- }
-
- @Override
- public void beforeMethod()
- {
- super.beforeMethod();
- setCurrentManager(getCurrentConfiguration().getManagers().getManager());
- }
-
- @Override
- public void afterMethod()
- {
- super.afterMethod();
- setCurrentManager(null);
- }
-
- /**
- * Checks if all annotations are in a given set of annotations
- *
- * @param annotations The annotation set
- * @param annotationTypes The annotations to match
- * @return True if match, false otherwise
- */
- public boolean annotationSetMatches(Set<Annotation> annotations, Class<? extends Annotation>... annotationTypes)
- {
- List<Class<? extends Annotation>> annotationTypeList = new ArrayList<Class<? extends Annotation>>();
- annotationTypeList.addAll(Arrays.asList(annotationTypes));
- for (Annotation annotation : annotations)
- {
- if (annotationTypeList.contains(annotation.annotationType()))
- {
- annotationTypeList.remove(annotation.annotationType());
- }
- else
- {
- return false;
- }
- }
- return annotationTypeList.size() == 0;
- }
-
-}
View
97 xml/src/main/java/org/jboss/jsr299/tck/ForwardingBean.java
@@ -1,97 +0,0 @@
-package org.jboss.jsr299.tck;
-
-import java.lang.annotation.Annotation;
-import java.lang.reflect.Type;
-import java.util.Set;
-
-import javax.context.CreationalContext;
-import javax.enterprise.inject.spi.Bean;
-import javax.inject.manager.InjectionPoint;
-import javax.inject.manager.Manager;
-
-public abstract class ForwardingBean<T> implements Bean<T>
-{
-
- protected ForwardingBean(Manager manager)
- {
- super(manager);
- }
-
- protected abstract Bean<T> delegate();
-
- @Override
- public Set<Annotation> getBindings()
- {
- return delegate().getBindings();
- }
-
- @Override
- public Class<? extends Annotation> getDeploymentType()
- {
- return delegate().getDeploymentType();
- }
-
- @Override
- public Set<? extends InjectionPoint> getInjectionPoints()
- {
- return delegate().getInjectionPoints();
- }
-
- @Override
- public String getName()
- {
- return delegate().getName();
- }
-
- @Override
- public Class<? extends Annotation> getScopeType()
- {
- return delegate().getScopeType();
- }
-
- @Override
- public Set<Type> getTypes()
- {
- return delegate().getTypes();
- }
-
- @Override
- public boolean isNullable()
- {
- return delegate().isNullable();
- }
-
- @Override
- public boolean isSerializable()
- {
- return delegate().isSerializable();
- }
-
- public T create(CreationalContext<T> creationalContext)
- {
- return delegate().create(creationalContext);
- }
-
- public void destroy(T instance)
- {
- delegate().destroy(instance);
- }
-
- @Override
- public boolean equals(Object obj)
- {
- return delegate().equals(obj);
- }
-
- @Override
- public String toString()
- {
- return delegate().toString();
- }
-
- @Override
- public int hashCode()
- {
- return delegate().hashCode();
- }
-}
View
98 xml/src/main/java/org/jboss/jsr299/tck/impl/JSR299ConfigurationImpl.java
@@ -1,98 +0,0 @@
-package org.jboss.jsr299.tck.impl;
-
-import javax.context.Context;
-
-import org.jboss.jsr299.tck.api.JSR299Configuration;
-import org.jboss.jsr299.tck.spi.Beans;
-import org.jboss.jsr299.tck.spi.Contexts;
-import org.jboss.jsr299.tck.spi.EL;
-import org.jboss.jsr299.tck.spi.Managers;
-import org.jboss.testharness.impl.ConfigurationImpl;
-
-public class JSR299ConfigurationImpl extends ConfigurationImpl implements JSR299Configuration
-{
-
- public static JSR299Configuration get()
- {
- return ConfigurationImpl.get(JSR299Configuration.class);
- }
-
- public static final String INTEGRATION_TEST_PACKAGE_NAME = "org.jboss.jsr299.tck.integration";
- public static final String UNIT_TEST_PACKAGE_NAME = "org.jboss.jsr299.tck.unit";
-
- private Beans beans;
- private Contexts<? extends Context> contexts;
- private Managers managers;
- private EL el;
-
- protected JSR299ConfigurationImpl()
- {
- }
-
- public JSR299ConfigurationImpl(JSR299Configuration configuration)
- {
- this.beans = configuration.getBeans();
- this.contexts = configuration.getContexts();
- this.managers = configuration.getManagers();
- this.el = configuration.getEl();
- }
-
-
- public Beans getBeans()
- {
- return beans;
- }
-
- public void setBeans(Beans beans)
- {
- this.beans = beans;
- }
-
- @SuppressWarnings("unchecked")
- public <T extends Context> Contexts<T> getContexts()
- {
- return (Contexts<T>) contexts;
- }
-
- public <T extends Context> void setContexts(Contexts<T> contexts)
- {
- this.contexts = contexts;
- }
-
- public Managers getManagers()
- {
- return managers;
- }
-
- public void setManagers(Managers managers)
- {
- this.managers = managers;
- }
-
- public EL getEl()
- {
- return el;
- }
-
- public void setEl(EL el)
- {
- this.el = el;
- }
-
- @Override
- public String toString()
- {
- StringBuilder configuration = new StringBuilder();
- configuration.append("JSR 299 TCK Configuration\n");
- configuration.append("-----------------\n");
- configuration.append("\tBeans: ").append(getBeans()).append("\n");
- configuration.append("\tContainers: ").append(getContainers()).append("\n");
- configuration.append("\tContexts: ").append(getContexts()).append("\n");
- configuration.append("\tEL: ").append(getEl()).append("\n");
- configuration.append("\tManagers: ").append(getManagers()).append("\n");
- configuration.append("\n");
- configuration.append(super.toString());
- return configuration.toString();
- }
-
-}
View
45 xml/src/main/java/org/jboss/jsr299/tck/impl/JSR299PropertiesBasedConfigurationBuilder.java
@@ -1,45 +0,0 @@
-package org.jboss.jsr299.tck.impl;
-
-import java.io.IOException;
-
-import javax.context.Context;
-
-import org.jboss.jsr299.tck.AbstractJSR299Test;
-import org.jboss.jsr299.tck.api.JSR299Configuration;
-import org.jboss.jsr299.tck.literals.NewLiteral;
-import org.jboss.jsr299.tck.spi.Beans;
-import org.jboss.jsr299.tck.spi.Contexts;
-import org.jboss.jsr299.tck.spi.EL;
-import org.jboss.jsr299.tck.spi.Managers;
-import org.jboss.testharness.impl.PropertiesBasedConfigurationBuilder;
-
-public class JSR299PropertiesBasedConfigurationBuilder extends PropertiesBasedConfigurationBuilder<JSR299Configuration>
-{
-
- public JSR299PropertiesBasedConfigurationBuilder() throws IOException
- {
- super(new JSR299ConfigurationImpl());
- super.getConfiguration().getExtraPackages().add(NewLiteral.class.getPackage().getName());
- super.getConfiguration().getExtraPackages().add(AbstractJSR299Test.class.getPackage().getName());
- super.getConfiguration().getExtraPackages().add(JSR299ConfigurationImpl.class.getPackage().getName());
- super.getConfiguration().getExtraPackages().add(JSR299Configuration.class.getPackage().getName());
- super.getConfiguration().getExtraPackages().add(Managers.class.getPackage().getName());
- super.getConfiguration().getExtraDeploymentProperties().add("org.jboss.testharness.api.ConfigurationBuilder=org.jboss.jsr299.tck.impl.JSR299PropertiesBasedConfigurationBuilder");
- }
-
- @Override
- public JSR299PropertiesBasedConfigurationBuilder init()
- {
- super.init();
- getConfiguration().setManagers(getInstanceValue(Managers.PROPERTY_NAME, Managers.class, true));
- getConfiguration().setBeans(getInstanceValue(Beans.PROPERTY_NAME, Beans.class, true));
- getConfiguration().setEl(getInstanceValue(EL.PROPERTY_NAME, EL.class, true));
-
- @SuppressWarnings("unchecked")
- Contexts<? extends Context> instanceValue = getInstanceValue(Contexts.PROPERTY_NAME, Contexts.class, true);
-
- getConfiguration().setContexts(instanceValue);
- return this;
- }
-
-}
View
11 xml/src/main/java/org/jboss/jsr299/tck/literals/CurrentLiteral.java
@@ -1,11 +0,0 @@
-package org.jboss.jsr299.tck.literals;
-
-import javax.enterprise.inject.AnnotationLiteral;
-import javax.enterprise.inject.Current;
-
-/**
- * Annotation literal for @Current
- *
- * @author Pete Muir
- */
-public class CurrentLiteral extends AnnotationLiteral<Current> implements Current {}
View
9 xml/src/main/java/org/jboss/jsr299/tck/literals/NewLiteral.java
@@ -1,9 +0,0 @@
-package org.jboss.jsr299.tck.literals;
-
-import javax.inject.AnnotationLiteral;
-import javax.inject.New;
-
-public class NewLiteral extends AnnotationLiteral<New> implements New
-{
-
-}
View
6 xml/src/main/java/org/jboss/jsr299/tck/tests/implementation/simple/lifecycle/Animal.java
@@ -1,6 +0,0 @@
-package org.jboss.jsr299.tck.tests.implementation.simple.lifecycle;
-
-interface Animal
-{
-
-}
View
20 ...ava/org/jboss/jsr299/tck/tests/implementation/simple/lifecycle/AnotherDeploymentType.java
@@ -1,20 +0,0 @@
-package org.jboss.jsr299.tck.tests.implementation.simple.lifecycle;
-
-import static java.lang.annotation.ElementType.METHOD;
-import static java.lang.annotation.ElementType.TYPE;
-import static java.lang.annotation.RetentionPolicy.RUNTIME;
-
-import java.lang.annotation.Documented;
-import java.lang.annotation.Retention;
-import java.lang.annotation.Target;
-
-import javax.inject.DeploymentType;
-
-@Target( { TYPE, METHOD })
-@Retention(RUNTIME)
-@Documented
-@DeploymentType
-@interface AnotherDeploymentType
-{
-
-}
View
12 ...n/java/org/jboss/jsr299/tck/tests/implementation/simple/lifecycle/BookOrderProcessor.java
@@ -1,12 +0,0 @@
-package org.jboss.jsr299.tck.tests.implementation.simple.lifecycle;
-
-class BookOrderProcessor extends OrderProcessor
-{
-
- @Override
- public void postConstruct() {}
-
- @Override
- public void preDestroy() {}
-
-}
View
6 ...ain/java/org/jboss/jsr299/tck/tests/implementation/simple/lifecycle/CdOrderProcessor.java
@@ -1,6 +0,0 @@
-package org.jboss.jsr299.tck.tests.implementation.simple.lifecycle;
-
-class CdOrderProcessor extends OrderProcessor
-{
-
-}
View
14 xml/src/main/java/org/jboss/jsr299/tck/tests/implementation/simple/lifecycle/Cod.java