From 04f6c3363275a69f7b9020dad710e76b20dfcc20 Mon Sep 17 00:00:00 2001 From: Narayan Kamath Date: Mon, 18 Nov 2013 11:49:39 +0000 Subject: Remove bogus test case in TreeSetTest. Adding a non-comparable key to the set will throw an exception. Change-Id: Ie3474f657c45891671b8fd1e10cea5a75c9179dc --- .../test/java/org/apache/harmony/tests/java/util/TreeSetTest.java | 8 -------- 1 file changed, 8 deletions(-) (limited to 'harmony-tests') diff --git a/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/TreeSetTest.java b/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/TreeSetTest.java index 265f5b9..43efa2d 100644 --- a/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/TreeSetTest.java +++ b/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/TreeSetTest.java @@ -319,14 +319,6 @@ public class TreeSetTest extends junit.framework.TestCase { s2.add(new Object()); assertFalse("Sets should not be equal 3", s1.equals(s2)); assertFalse("Sets should not be equal 4", s2.equals(s1)); - - // comparing TreeSets with not-comparable objects inside - s1 = new TreeSet(); - s2 = new TreeSet(); - s1.add(new Object()); - s2.add(new Object()); - assertFalse("Sets should not be equal 5", s1.equals(s2)); - assertFalse("Sets should not be equal 6", s2.equals(s1)); } /** -- cgit v1.1