Update to upstream version 0.5

- Remove patch for MSHARED-285 (accepted upstream)
This commit is contained in:
Mikolaj Izdebski 2013-12-23 09:23:28 +01:00
parent d0a5909f05
commit 4fad438b53
4 changed files with 8 additions and 101 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
/maven-shared-utils-0.2-source-release.zip
/maven-shared-utils-0.3-source-release.zip
/maven-shared-utils-0.4-source-release.zip
/maven-shared-utils-0.5-source-release.zip

View File

@ -1,94 +0,0 @@
diff --git a/pom.xml b/pom.xml
index e12f7e6..bb0745f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -56,7 +56,7 @@
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
- <version>4.9</version>
+ <version>4.11</version>
<scope>test</scope>
</dependency>
<dependency>
diff --git a/src/test/java/org/apache/maven/shared/utils/ExpandTest.java b/src/test/java/org/apache/maven/shared/utils/ExpandTest.java
index 298cb70..b032da9 100644
--- a/src/test/java/org/apache/maven/shared/utils/ExpandTest.java
+++ b/src/test/java/org/apache/maven/shared/utils/ExpandTest.java
@@ -73,6 +73,7 @@ public class ExpandTest
* @return
*/
private File getTestTargetDir()
+ throws Exception
{
return tempFolder.newFolder( TEST_ZIP_TARGET_FOLDER );
}
diff --git a/src/test/java/org/apache/maven/shared/utils/reflection/ReflectorTest.java b/src/test/java/org/apache/maven/shared/utils/reflection/ReflectorTest.java
index 6d8cca3..e9e2ca5 100644
--- a/src/test/java/org/apache/maven/shared/utils/reflection/ReflectorTest.java
+++ b/src/test/java/org/apache/maven/shared/utils/reflection/ReflectorTest.java
@@ -25,6 +25,7 @@ import java.lang.reflect.Constructor;
import static org.hamcrest.CoreMatchers.*;
import static org.junit.Assert.assertThat;
+import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import static org.apache.maven.shared.utils.testhelpers.ExceptionHelper.*;
@@ -116,8 +117,8 @@ public class ReflectorTest
public void newInstancePublicConstructor()
throws Exception
{
- assertThat( reflector.newInstance( ReflectorTestHelper.class, new Object[]{ "" } ),
- is( ReflectorTestHelper.class ) );
+ assertTrue( reflector.newInstance( ReflectorTestHelper.class, new Object[]{ "" } )
+ instanceof ReflectorTestHelper );
}
@Test( expected = NullPointerException.class )
@@ -222,8 +223,8 @@ public class ReflectorTest
public void getSingletonPublicMethod()
throws Exception
{
- assertThat( reflector.getSingleton( ReflectorTestHelper.class, new Object[]{ "" } ),
- is( ReflectorTestHelper.class ) );
+ assertTrue( reflector.getSingleton( ReflectorTestHelper.class, new Object[]{ "" } )
+ instanceof ReflectorTestHelper );
}
@Test( expected = NullPointerException.class )
@@ -252,8 +253,8 @@ public class ReflectorTest
public void getSingletonNonStaticMethod()
throws Exception
{
- assertThat( reflector.getSingleton( ReflectorTestHelper.class, new Object[]{ "", Boolean.FALSE } ),
- is( ReflectorTestHelper.class ) );
+ assertTrue( reflector.getSingleton( ReflectorTestHelper.class, new Object[]{ "", Boolean.FALSE } )
+ instanceof ReflectorTestHelper );
}
//// invoke( Object, String, Object[] )
@@ -866,8 +867,8 @@ public class ReflectorTest
public void invokeStaticPublicMethod()
throws Exception
{
- assertThat( reflector.invokeStatic( ReflectorTestHelper.class, "getInstance", new Object[]{ "" } ),
- is( ReflectorTestHelper.class ) );
+ assertTrue( reflector.invokeStatic( ReflectorTestHelper.class, "getInstance", new Object[]{ "" } )
+ instanceof ReflectorTestHelper );
}
@Test( expected = NullPointerException.class )
@@ -896,9 +897,9 @@ public class ReflectorTest
public void invokeStaticNonStaticMethod()
throws Exception
{
- assertThat(
- reflector.invokeStatic( ReflectorTestHelper.class, "getInstance", new Object[]{ "", Boolean.FALSE } ),
- is( ReflectorTestHelper.class ) );
+ assertTrue(
+ reflector.invokeStatic( ReflectorTestHelper.class, "getInstance", new Object[]{ "", Boolean.FALSE } )
+ instanceof ReflectorTestHelper );
}
//// getConstructor( Class, Class[] )

View File

@ -1,13 +1,10 @@
Name: maven-shared-utils
Version: 0.4
Release: 2%{?dist}
Version: 0.5
Release: 1%{?dist}
Summary: Maven shared utility classes
License: ASL 2.0
URL: http://maven.apache.org/shared/maven-shared-utils
Source0: http://repo1.maven.org/maven2/org/apache/maven/shared/%{name}/%{version}/%{name}-%{version}-source-release.zip
# Patching tests so that they are compatible with JUnit 4.11
# (upstream bug http://jira.codehaus.org/browse/MSHARED-285)
Patch0: %{name}-tests.patch
BuildArch: noarch
@ -33,7 +30,6 @@ API documentation for %{name}.
%prep
%setup -q
%pom_remove_plugin org.codehaus.mojo:findbugs-maven-plugin
%patch0 -p1
%build
%mvn_build
@ -48,6 +44,10 @@ API documentation for %{name}.
%doc LICENSE NOTICE
%changelog
* Mon Dec 23 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.5-1
- Update to upstream version 0.5
- Remove patch for MSHARED-285 (accepted upstream)
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild

View File

@ -1 +1 @@
19eae55f89777e7f89b4b31537e32c4d maven-shared-utils-0.4-source-release.zip
5d432a3ec86f7dfccea04f8824931ad1 maven-shared-utils-0.5-source-release.zip