Skip to content

Commit

Permalink
Added unit test related to issue #7, and then tweaked testDelombok go…
Browse files Browse the repository at this point in the history
…al to correctly handle scenario.
  • Loading branch information
awhitford committed Aug 16, 2017
1 parent 9622b08 commit e9c266a
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ protected File getSourceDirectory() {

@Override
protected String getSourcePath() {
return StringUtils.join(this.project.getTestCompileSourceRoots(), File.pathSeparatorChar);
return StringUtils.joinWith(File.pathSeparator,
StringUtils.join(this.project.getCompileSourceRoots(), File.pathSeparatorChar),
StringUtils.join(this.project.getTestCompileSourceRoots(), File.pathSeparatorChar)
);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package org.projectlombok.test;

import lombok.val;
import org.junit.Assert;
import org.junit.Test;

public class DataExampleTest {

@Test
public void testDataExample() {
val name = "MyData";
val de = new DataExample(name);
Assert.assertEquals(de.getName(), name);
}

}

0 comments on commit e9c266a

Please sign in to comment.