Project project = getFaceted();
JavaSourceFacet facet = project.getFacet(JavaSourceFacet.class);
String topLevelPackage = facet.getBasePackage();
JavaClassSource testClass = Roaster.create(JavaClassSource.class).setPackage(topLevelPackage);
testClass.setName("AbstractTestCase").setAbstract(true);
facet.saveTestJavaSource(testClass.getEnclosingType());
return true;
}
return false;
}