use of org.objectweb.asm.tree.MethodNode in project felix by apache.
the class NamesTestCase method testAddPatternRecognition.
public void testAddPatternRecognition() throws Exception {
MethodNode node = new MethodNode();
node.name = "addService";
assertEquals("Service", getMethodIdentifier(node));
}
use of org.objectweb.asm.tree.MethodNode in project felix by apache.
the class NamesTestCase method testSpecificationRecognizedWithMap.
public void testSpecificationRecognizedWithMap() throws Exception {
MethodNode node = new MethodNode();
node.name = "handle";
node.desc = "(Lmy/Service;Ljava/util/Map;)V";
assertEquals("my.Service", getMethodIdentifier(node));
}
use of org.objectweb.asm.tree.MethodNode in project felix by apache.
the class NamesTestCase method testSpecificationRecognizedWithServiceReference.
public void testSpecificationRecognizedWithServiceReference() throws Exception {
MethodNode node = new MethodNode();
node.name = "handle";
node.desc = "(Lmy/Service;Lorg/osgi/framework/ServiceReference;)V";
assertEquals("my.Service", getMethodIdentifier(node));
}
use of org.objectweb.asm.tree.MethodNode in project felix by apache.
the class NamesTestCase method testRemovePatternRecognition.
public void testRemovePatternRecognition() throws Exception {
MethodNode node = new MethodNode();
node.name = "removeService";
assertEquals("Service", getMethodIdentifier(node));
}
use of org.objectweb.asm.tree.MethodNode in project felix by apache.
the class NamesTestCase method testModifiedPatternRecognition.
public void testModifiedPatternRecognition() throws Exception {
MethodNode node = new MethodNode();
node.name = "modifiedService";
assertEquals("Service", getMethodIdentifier(node));
}
Aggregations