Skip to content

Commit

Permalink
Expecting test to pass on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
gastaldi committed Jun 22, 2016
1 parent fa9bf59 commit a211a7d
Showing 1 changed file with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@
*/
package org.jboss.forge.test.roaster.model;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;

import java.lang.annotation.Documented;

import org.jboss.forge.roaster.Roaster;
import org.jboss.forge.roaster.model.source.JavaClassSource;
import org.junit.BeforeClass;
import org.junit.Test;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;

/**
* @author <a href="mailto:lincolnbaxter@gmail.com">Lincoln Baxter, III</a>
*/
Expand All @@ -39,11 +39,12 @@ public void testClassCreatesStub() throws Exception
@Test
public void testImportStatementHasEmptyLineBeforeClassDeclaration() throws Exception
{
String expected = "package org.foo;\n" +
"\n" +
"import java.lang.annotation.Documented;\n\n" +
"@Documented\n" +
"public class JavaClass {\n" +
String lineSeparator = System.getProperty("line.separator");
String expected = "package org.foo;" + lineSeparator +
lineSeparator +
"import java.lang.annotation.Documented;" + lineSeparator + lineSeparator +
"@Documented" + lineSeparator +
"public class JavaClass {" + lineSeparator +
"}";

jc.setPackage("org.foo").addAnnotation(Documented.class);
Expand Down

0 comments on commit a211a7d

Please sign in to comment.