Skip to content

Commit

Permalink
Issue: checkstyle#3985 Moved all input files to new folder
Browse files Browse the repository at this point in the history
1. Updated EmptyLineSeparatorCheckTest.java with updated paths.
2. Moved InputEmptyLineSeparator[*].java to new folder emptylinesperator
3. Copied InputPrePreviousLineEmptiness and files under package-info to
the new folder.
  • Loading branch information
anudeepti2004 committed Mar 12, 2017
1 parent 5905629 commit b97f376
Show file tree
Hide file tree
Showing 13 changed files with 33 additions and 1 deletion.
Expand Up @@ -40,7 +40,8 @@ public class EmptyLineSeparatorCheckTest
@Override
protected String getPath(String filename) throws IOException {
return super.getPath("checks" + File.separator
+ "whitespace" + File.separator + filename);
+ "whitespace" + File.separator
+ "emptylineseparator" + File.separator + filename);
}

@Test
Expand Down
@@ -0,0 +1,6 @@

package com.puppycrawl.tools.checkstyle.checks.whitespace;

public class InputPrePreviousLineEmptiness {

}
@@ -0,0 +1,5 @@
/*OK: for test allowing to place annotation before PACKAGE_DEF.*/
@Deprecated
package com.puppycrawl.tools.checkstyle.checks.whitespace.packageinfo.test1;

import java.lang.Deprecated;
@@ -0,0 +1,6 @@
/**OK: for test allowing to place javadoc before PACKAGE_DEF.*/
package com.puppycrawl.tools.checkstyle.checks.whitespace.packageinfo.test2;

//that import is for doing check of PACKAGE_DEF,
//because EmptyLineSeparatorCheck doesn't check last token
import java.lang.System;
@@ -0,0 +1,7 @@
/*violation: for test that there's warning when block comment isn't
separated from PACKAGE_DEF by line.*/
package com.puppycrawl.tools.checkstyle.checks.whitespace.packageinfo.test3;

//that import is for doing check of PACKAGE_DEF,
//because EmptyLineSeparatorCheck doesn't check last token
import java.lang.System;
@@ -0,0 +1,7 @@
//for test there's warning when single line comment isn't separated from PACKAGE_DEF by line
//violation is expected after this line
package com.puppycrawl.tools.checkstyle.checks.whitespace.packageinfo.test4;

//that import is for doing check of PACKAGE_DEF,
//because EmptyLineSeparatorCheck doesn't check last token
import java.lang.System;

0 comments on commit b97f376

Please sign in to comment.