Permalink
Browse files

Fixing TestPathingJarUtil

RB=1110268
R=kbalasub
A=kbalasub
  • Loading branch information...
Vinyas Maddi
Vinyas Maddi committed Sep 25, 2017
1 parent 0e5b2f3 commit da68080caa3ef4f852ea1964e98bf7efbf73771a
@@ -32,17 +32,21 @@ class TestPathingJarUtil {
}
@Test
void testDoesNotCreatePathingJarWhenOverriden() {
void testDoesNotCreatePathingJar() {
//setup
final Project project = ProjectBuilder.builder().build()
final String taskName = 'myTaskName'
final tempFile = new File(project.buildDir, 'temp.class')
final restliTools = new File(project.buildDir, 'restli-tools-scala')
GFileUtils.touch(tempFile)
final FileCollection files = project.files(tempFile)
GFileUtils.touch(restliTools)
final FileCollection files = project.files(tempFile, restliTools)
//when
PathingJarUtil.generatePathingJar(project, taskName, files, false)
File pathingJar = new File(project.buildDir, "${taskName}/${project.name}-pathing.jar")
PathingJarUtil.generatePathingJar(project, taskName, files, false)
assert !pathingJar.exists()
}
}

0 comments on commit da68080

Please sign in to comment.