diff options
author | aclement <aclement> | 2010-01-25 20:45:34 +0000 |
---|---|---|
committer | aclement <aclement> | 2010-01-25 20:45:34 +0000 |
commit | c70383591c468ed1c289791f8b2bfaad12aca804 (patch) | |
tree | 78422c25350d9ecd244e7069086ea282ce8623c7 /tests/multiIncremental/pr298704_testaspects | |
parent | cd123ff75a28937d49d19cdbdcb57ad9f4328b75 (diff) | |
download | aspectj-c70383591c468ed1c289791f8b2bfaad12aca804.tar.gz aspectj-c70383591c468ed1c289791f8b2bfaad12aca804.zip |
298704
Diffstat (limited to 'tests/multiIncremental/pr298704_testaspects')
-rw-r--r-- | tests/multiIncremental/pr298704_testaspects/base/src/test/ViewEnhancerIntegrationTest.java | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/tests/multiIncremental/pr298704_testaspects/base/src/test/ViewEnhancerIntegrationTest.java b/tests/multiIncremental/pr298704_testaspects/base/src/test/ViewEnhancerIntegrationTest.java new file mode 100644 index 000000000..a10ddd060 --- /dev/null +++ b/tests/multiIncremental/pr298704_testaspects/base/src/test/ViewEnhancerIntegrationTest.java @@ -0,0 +1,40 @@ +/** + * Copyright (c) 2009 Collaborative Development Group, C.S. Dept., University of Bari + * + * All rights reserved. This program and the accompanying materials are made available under + * the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is + * available at http://www.eclipse.org/legal/epl-v10.html + */ +package test; + +import it.uniba.di.cdg.penelope.ui.annotation.View; +import it.uniba.di.cdg.penelope.ui.mvp.IManagedView; +import it.uniba.di.cdg.penelope.ui.mvp.AbstractViewEnhancerAspect; + +/** + * + */ +public class ViewEnhancerIntegrationTest { + +@View + public static class MockView { + + } + + static aspect ViewEnhancerAspect extends AbstractViewEnhancerAspect { + pointcut scope() : within( test.ViewEnhancerIntegrationTest ); + } + + public void simulateViewCreation() { + } + + public void shouldAugmentView() { + //given @View class has been augmented + + //when + MockView view = new MockView(); + + //then + // assertTrue( view instanceof IManagedView ); + } +} |