Skip to content

Commit

Permalink
Issue #2 and some little things fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
robertstreng committed Apr 7, 2017
1 parent c7ac3c4 commit cf7fdbc
Show file tree
Hide file tree
Showing 16 changed files with 476 additions and 496 deletions.
Binary file removed org.junit.tools/classes/.DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion org.junit.tools/classes/.gitignore
@@ -1 +1 @@
/org
/org/
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Expand Up @@ -31,7 +31,7 @@ public interface IGeneratorConstants {

public final static String QUOTES = "\"";

public static final String VERSION = "org.junit-tools-1.0.4";
public static final String VERSION = "org.junit-tools-1.0.5";

public static final String ANNO_GENERATED_NAME = "Generated";
public static final String ANNO_GENERATED = "@" + ANNO_GENERATED_NAME;
Expand Down
Expand Up @@ -170,7 +170,9 @@ public ICompilationUnit generate(GeneratorModel model, List<ITestDataFactory> te
// create the test-source-folder and -package
IPackageFragment testPackage = model.getJUTElements().getClassesAndPackages().getTestPackage();

testClass.createPackageDeclaration(testPackage.getElementName(), null);
if (!testPackage.isDefaultPackage()) {
testClass.createPackageDeclaration(testPackage.getElementName(), null);
}

// create static standard-imports
createStandardStaticImports(testClass);
Expand Down

0 comments on commit cf7fdbc

Please sign in to comment.