Author: Andreas Tille <tille@debian.org>
Last-Update: Wed, 05 Jun 2013 14:51:51 +0200
Description: Skip test requiring inpackaged class jamm

--- a/src/test/java/com/google/code/externalsorting/ExternalSortTest.java
+++ b/src/test/java/com/google/code/externalsorting/ExternalSortTest.java
@@ -29,7 +29,6 @@ import org.junit.After;
 import org.junit.Before;
 import org.junit.Ignore;
 import org.junit.Test;
-import org.github.jamm.*;
 
 /**
  * Unit test for simple App.
@@ -139,25 +138,6 @@ public class ExternalSortTest {
       System.out.println("[performance] String size estimator uses "+bestdiff * 1.0 / N + " ns per string");
     }
 
-    /**
-    * This checks that the estimation is reasonably accurate.
-    */
-    @Test
-    public void stringSizeEstimatorQuality() {
-      MemoryMeter meter = new MemoryMeter().ignoreKnownSingletons().ignoreOuterClassReference().ignoreNonStrongReferences();
-      for(int k = 0; k < 100; ++k) {
-        String s = new String();
-        while(s.length() < k) s += "-";
-        long myestimate = StringSizeEstimator.estimatedSizeOf(s);
-        long jammestimate = meter.measureDeep(s);
-        System.out.println("String of size "+k+" estimates are us: "+myestimate+ " bytes jamm: "+jammestimate+" bytes");
-        assertTrue(jammestimate <= myestimate);
-        assertTrue(2 * jammestimate > myestimate);
-      }
-      System.out.println("All our string memory usage estimation are within a factor of two of jamm's and never lower.");
-
-    }
-
     @Test
     public void stringSizeEstimator() {
       for(int k = 0; k < 10; ++k) {
--- a/pom.xml
+++ b/pom.xml
@@ -42,11 +42,6 @@
                 <version>4.12</version>
             </dependency>
 
-        <dependency>
-            <groupId>com.github.jbellis</groupId>
-            <artifactId>jamm</artifactId>
-            <version>0.3.1</version>
-        </dependency>
         </dependencies>
     </dependencyManagement>
     <dependencies>
@@ -55,11 +50,6 @@
             <artifactId>junit</artifactId>
             <scope>test</scope>
         </dependency>
-        <dependency>
-            <groupId>com.github.jbellis</groupId>
-            <artifactId>jamm</artifactId>
-            <scope>test</scope>
-        </dependency>
 
     </dependencies>
     <build>
@@ -108,19 +98,6 @@
 
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-surefire-plugin</artifactId>
-                <version>2.19.1</version>
-                <configuration>
-                    <includes>
-                        <include>**/*Spec.*</include>
-                        <include>**/*Test.*</include>
-                        <include>**/*Benchmark.java</include>
-                    </includes>
-                    <argLine>-javaagent:${project.build.directory}/lib/jamm-0.3.1.jar</argLine>
-                </configuration>
-            </plugin>
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-jar-plugin</artifactId>
                 <version>2.6</version>
                 <configuration>
