Skip to content

Instantly share code, notes, and snippets.

@loddar
Created September 22, 2014 12:50
Show Gist options
  • Save loddar/c5f974f5e987527f68c3 to your computer and use it in GitHub Desktop.
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).
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