| |
|
| ch.ethz.prose.ExtensionInsertionTest
ExtensionInsertionTest | public class ExtensionInsertionTest extends TestCase (Code) | | JUnit test for DefaultAspect,ProseSystem and Functional Crosscut.
version: $Revision: 1.3 $ author: Andrei Popovici |
Inner Class :static class TestClass | |
Inner Class :static class TestClassWithInt | |
Inner Class :public static class SimpleExtension extends DefaultAspect | |
Inner Class :abstract static class AbstractMethodCut extends MethodCut | |
Inner Class :static class ConcreteMethodCut1 extends AbstractMethodCut | |
Inner Class :static class ConcreteMethodCut2 extends ConcreteMethodCut1 | |
Inner Class :static class ConcreteExtension extends DefaultAspect | |
Inner Class :static class ConcreteExtension1 extends DefaultAspect | |
concExtension | ConcreteExtension concExtension(Code) | | |
concExtension1 | ConcreteExtension1 concExtension1(Code) | | |
concVisited | static boolean concVisited(Code) | | |
npExtension | NonPubExtension npExtension(Code) | | |
testExtension | SimpleExtension testExtension(Code) | | |
testObject | TestClass testObject(Code) | | |
ExtensionInsertionTest | public ExtensionInsertionTest(String name)(Code) | | Construct test with given name.
Parameters: name - test name |
_testRegisterListener | public void _testRegisterListener() throws Exception(Code) | | |
setUp | protected void setUp()(Code) | | Set up fixture.
|
suite | public static Test suite()(Code) | | Test suite.
test instance |
tearDown | protected void tearDown()(Code) | | |
testConcreteExtension | public void testConcreteExtension()(Code) | | |
testConcreteExtension1 | public void testConcreteExtension1()(Code) | | |
testExtensionInsertion | public void testExtensionInsertion() throws Exception(Code) | | this tests inserts our example extension and
then calls 5 times each method of the example
class. the first crosscut (C1) should receive
5 * 2 on behalf of hello and 5 *2 on behalf of
byebye; the seccond crosscut would receive 5*2
messages for byeye. We test that our crosscuts
receive 30 messages.
|
testExtensionUniqueness | public void testExtensionUniqueness()(Code) | | |
testInnerCrosscutInsertion | public void testInnerCrosscutInsertion() throws Exception(Code) | | Until recently, crosscuts had to be declared as public
static local classes of extensions. This is no longer required.
We test here that a real inner class is callable.
|
testNotificationOrder | public void testNotificationOrder()(Code) | | |
testParamModification | public void testParamModification()(Code) | | |
testTeardownQuality | public void testTeardownQuality()(Code) | | This test checks whether after the call of the ProseSystem.teardown()
method all joinpoints have been correctly cleaned up.
|
|
|
|