summaryrefslogtreecommitdiffstats
path: root/java/sca/modules/implementation-java/src/test/java/org
diff options
context:
space:
mode:
authorrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2009-07-07 21:37:19 +0000
committerrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2009-07-07 21:37:19 +0000
commitb0de81edb24b9247af5120bef1a06ed0e250957c (patch)
treebf3609e1f483b9041c9a5ea8c123fe148e7ab1b7 /java/sca/modules/implementation-java/src/test/java/org
parent29826fcbbbe819fdb05b45e45f9e93f90fe47cfd (diff)
Add support to introspect intents from specific annotations such as @Authentication
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@791984 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca/modules/implementation-java/src/test/java/org')
-rw-r--r--java/sca/modules/implementation-java/src/test/java/org/apache/tuscany/sca/implementation/java/introspect/impl/PolicyProcessorTestCase.java13
1 files changed, 9 insertions, 4 deletions
diff --git a/java/sca/modules/implementation-java/src/test/java/org/apache/tuscany/sca/implementation/java/introspect/impl/PolicyProcessorTestCase.java b/java/sca/modules/implementation-java/src/test/java/org/apache/tuscany/sca/implementation/java/introspect/impl/PolicyProcessorTestCase.java
index 6c9ffc7975..1a7889366e 100644
--- a/java/sca/modules/implementation-java/src/test/java/org/apache/tuscany/sca/implementation/java/introspect/impl/PolicyProcessorTestCase.java
+++ b/java/sca/modules/implementation-java/src/test/java/org/apache/tuscany/sca/implementation/java/introspect/impl/PolicyProcessorTestCase.java
@@ -53,28 +53,33 @@ public class PolicyProcessorTestCase {
// This actually is a test for PolicyJavaInterfaceProcessor. It will get
// invoked via the call to ImplementationProcessorServiceImpl.createService in
// ServiceProcessor. Of course ServiceProcessor class has to be working.
- public void stestSingleInterfaceWithIntentsOnInterfaceAtInterfaceLevel() throws Exception {
+ @Test
+ public void testSingleInterfaceWithIntentsOnInterfaceAtInterfaceLevel() throws Exception {
serviceProcessor.visitClass(Service1.class, type);
visitor.visitInterface((JavaInterface)type.getServices().get(0).getInterfaceContract().getInterface());
policyProcessor.visitClass(Service1.class, type);
verifyIntents(Service1.class, type);
}
- public void stestMultipleInterfacesWithIntentsOnInterfaceAtInterfaceLevel() throws Exception {
+ @Test
+ public void testMultipleInterfacesWithIntentsOnInterfaceAtInterfaceLevel() throws Exception {
serviceProcessor.visitClass(Service2.class, type);
visitor.visitInterface((JavaInterface)type.getServices().get(0).getInterfaceContract().getInterface());
+ visitor.visitInterface((JavaInterface)type.getServices().get(1).getInterfaceContract().getInterface());
policyProcessor.visitClass(Service2.class, type);
verifyIntents(Service2.class, type);
}
- public void stestSingleInterfaceWithIntentsOnImplAtClassLevel() throws Exception {
+ @Test
+ public void testSingleInterfaceWithIntentsOnImplAtClassLevel() throws Exception {
serviceProcessor.visitClass(Service3.class, type);
visitor.visitInterface((JavaInterface)type.getServices().get(0).getInterfaceContract().getInterface());
policyProcessor.visitClass(Service3.class, type);
verifyIntents(Service3.class, type);
}
- public void stestMultipleInterfacesWithIntentsOnImplAtClassLevel() throws Exception {
+ @Test
+ public void testMultipleInterfacesWithIntentsOnImplAtClassLevel() throws Exception {
serviceProcessor.visitClass(Service4.class, type);
visitor.visitInterface((JavaInterface)type.getServices().get(0).getInterfaceContract().getInterface());
policyProcessor.visitClass(Service4.class, type);