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
public class Fubar { | |
private boolean launch = true; | |
public void getLaunch(){ | |
return this.launch; | |
} | |
public void setLaunch(boolean launch){ | |
/* this.launch = launch; */ // broken! | |
} |
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.octodecillion.test; | |
import java.lang.reflect.Method; | |
import java.util.List; | |
import org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider; | |
import org.springframework.core.type.ClassMetadata; | |
import org.springframework.core.type.classreading.MetadataReader; | |
import org.springframework.core.type.classreading.MetadataReaderFactory; | |
import org.springframework.core.type.filter.TypeFilter; |
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
/** | |
* Get all test classes starting from a base package path. | |
* <p> | |
* Example use: | |
* <pre> | |
* UnitTestScanner scanner = new UnitTestScanner(); | |
* List<Class<?>> list = scanner.getTestClasses("com.octodecillion.test"); | |
* </pre> | |
* @param basePackage package where search will start | |
* @param debug if true output more info |
NewerOlder