Created
September 22, 2014 12:50
-
-
Save loddar/c5f974f5e987527f68c3 to your computer and use it in GitHub Desktop.
ajUnit - Step 4 (Create at least one test fixture class and add it/them).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.company.project.aspects; | |
import org.failearly.ajunit.AjUnit4Test; | |
import org.failearly.ajunit.AjUnitSetup; | |
/** | |
* ajUnit - Step 4 (Create at least one test fixture class and add it/them). | |
* | |
* Next error message: | |
* | |
* ajUnit - Setup Error: Missing assertPointcut. | |
* - Please override assertPointcut(JoinPointSelector) | |
* | |
*/ | |
public class MyAjUnit4Test extends AjUnit4Test { | |
@Override | |
public void setup(AjUnitSetup ajUnitSetup) { | |
ajUnitSetup.assignAspect("com.company.project.aspects.MyAspect"); | |
ajUnitSetup.addTestFixtureClass(com.company.project.aspects.testfixture.MyTestFixture.class); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment