Uploaded image for project: 'Pivot'
  1. Pivot
  2. PIVOT-229

Compile errors in HashMapTest

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 1.3
    • 1.3
    • core-collections
    • None

    Description

      Just ran the test target and got these compiler errors.

      [javac] Compiling 15 source files to /home/tvolkert/project/pivot/core/ant-bin
      [javac] /home/tvolkert/project/pivot/core/test/org/apache/pivot/collections/test/HashMapTest.java:50: reference to assertEquals is ambiguous, both method assertEquals(double,double) in org.junit.Assert and method assertEquals(java.lang.Object,java.lang.Object) in org.junit.Assert match
      [javac] assertEquals(1, map.put("a", 2));
      [javac] ^
      [javac] /home/tvolkert/project/pivot/core/test/org/apache/pivot/collections/test/HashMapTest.java:52: reference to assertEquals is ambiguous, both method assertEquals(double,double) in org.junit.Assert and method assertEquals(java.lang.Object,java.lang.Object) in org.junit.Assert match
      [javac] assertEquals(2, map.get("a"));
      [javac] ^
      [javac] /home/tvolkert/project/pivot/core/test/org/apache/pivot/collections/test/HashMapTest.java:56: reference to assertEquals is ambiguous, both method assertEquals(double,double) in org.junit.Assert and method assertEquals(java.lang.Object,java.lang.Object) in org.junit.Assert match
      [javac] assertEquals(2, map.remove("a"));
      [javac] ^
      [javac] /home/tvolkert/project/pivot/core/test/org/apache/pivot/collections/test/HashMapTest.java:64: reference to assertEquals is ambiguous, both method assertEquals(double,double) in org.junit.Assert and method assertEquals(java.lang.Object,java.lang.Object) in org.junit.Assert match
      [javac] assertEquals(1, map.get("a"));
      [javac] ^
      [javac] /home/tvolkert/project/pivot/core/test/org/apache/pivot/collections/test/HashMapTest.java:65: reference to assertEquals is ambiguous, both method assertEquals(double,double) in org.junit.Assert and method assertEquals(java.lang.Object,java.lang.Object) in org.junit.Assert match
      [javac] assertEquals(2, map.get("b"));
      [javac] ^
      [javac] /home/tvolkert/project/pivot/core/test/org/apache/pivot/collections/test/HashMapTest.java:66: reference to assertEquals is ambiguous, both method assertEquals(double,double) in org.junit.Assert and method assertEquals(java.lang.Object,java.lang.Object) in org.junit.Assert match
      [javac] assertEquals(3, map.get("c"));
      [javac] ^
      [javac] 6 errors

      Attachments

        Activity

          People

            gbrown Gregory K. Brown
            tvolkert Todd Volkert
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: