Skip to content

Commit

Permalink
Merge pull request #21 from avioconsulting/remove_ant
Browse files Browse the repository at this point in the history
Remove ant dependency
  • Loading branch information
wied03 authored Sep 9, 2021
2 parents 757852e + f0225b5 commit 7225527
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 18 deletions.
6 changes: 0 additions & 6 deletions implementation/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -187,12 +187,6 @@
<artifactId>groovy-xml</artifactId>
<version>${groovy.compiler.version}</version>
</dependency>
<!-- for FilenameFinder -->
<dependency>
<groupId>org.apache.ant</groupId>
<artifactId>ant</artifactId>
<version>1.9.7</version>
</dependency>
<!-- Used in our base trait for deploying/setting up apps -->
<dependency>
<groupId>commons-io</groupId>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.avioconsulting.mule.testing

import org.apache.tools.ant.taskdefs.condition.Os
import org.apache.commons.lang.SystemUtils
import org.junit.Test

import static org.hamcrest.Matchers.equalTo
Expand All @@ -14,7 +14,7 @@ class OpenPortLocatorTest implements OpenPortLocator {
// where it's 8088 or 8089 for the first port is not important. What is import is
// that the 2nd port is used if the first port is taken and that will be 8090 for Windows
// see getHttpPort_secondPortOpen
Os.isFamily(Os.FAMILY_WINDOWS) ? 8089 : 8088
SystemUtils.IS_OS_WINDOWS ? 8089 : 8088
}

@Test
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
package com.avioconsulting.mule.testing

import com.avioconsulting.mule.testing.junit.BaseJunitTest
import org.junit.Ignore
import org.junit.Test

import static org.hamcrest.Matchers.*
import static org.hamcrest.Matchers.is
import static org.junit.Assert.assertThat

@Ignore("We do not currently have any patches")
class PatchesTest extends
BaseJunitTest implements
ConfigTrait {
Expand All @@ -18,16 +16,20 @@ class PatchesTest extends
@Test
void patch_exists() {
// arrange
def serverPatches = []

// act
def serverPatches = new FileNameFinder().getFileNames('.mule/lib',
'**/*')
new File('.mule/lib').eachFileRecurse {
def filename = it.name
if (filename.endsWith('.jar')) {
serverPatches << filename
}
}

// assert
assertThat serverPatches.size(),
is(equalTo(1))
def patch = serverPatches[0]
assertThat patch,
is(endsWith('MULE-17736-4.2.2-2.0.jar'))
assertThat 'We do not currently have any patches',
serverPatches,
is([
])
}
}

0 comments on commit 7225527

Please sign in to comment.