Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: move Validation.java to testclasses in prettyprinter #2181

Merged
merged 2 commits into from
Jul 10, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/test/java/spoon/test/prettyprinter/LinesTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public void setup() throws Exception {
spoon.createCompiler(
factory,
SpoonResourceHelper
.resources("./src/test/java/spoon/test/prettyprinter/Validation.java"))
.resources("./src/test/java/spoon/test/prettyprinter/testclasses/Validation.java"))
.build();
factory.getEnvironment().setPreserveLineNumbers(true);
factory.getEnvironment().setAutoImports(false);
Expand All @@ -54,7 +54,7 @@ public void testPrettyPrinterWithLines() throws Exception {
assertEquals(0, factory.getEnvironment().getErrorCount());

// contract: in line preserve mode, toString is not prefixed or suffixed by newlines
String meth = factory.Type().get("spoon.test.prettyprinter.Validation").getMethodsByName("isIdentifier").get(0).toString();
String meth = factory.Type().get("spoon.test.prettyprinter.testclasses.Validation").getMethodsByName("isIdentifier").get(0).toString();
// the added linebreaks due to line preservation are removed
assertFalse(Pattern.compile("^\\s", Pattern.DOTALL).asPredicate().test(meth.toString()));

Expand Down
2 changes: 1 addition & 1 deletion src/test/java/spoon/test/prettyprinter/PrinterTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public void testPrettyPrinter() throws Exception {
SpoonResourceHelper
.resources(
"./src/test/java/spoon/test/annotation/testclasses/PersistenceProperty.java",
"./src/test/java/spoon/test/prettyprinter/Validation.java"))
"./src/test/java/spoon/test/prettyprinter/testclasses/Validation.java"))
.build();
for (CtType<?> t : factory.Type().getAll()) {
t.toString();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package spoon.test.prettyprinter;
package spoon.test.prettyprinter.testclasses;

import java.security.AccessController;
import java.security.PrivilegedAction;
Expand Down