1 /* 2 * Copyright (C) 2008 The Guava Authors 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 package com.google.common.testing; 17 public class EqualsTesterTest_gwt extends com.google.gwt.junit.client.GWTTestCase { getModuleName()18@Override public String getModuleName() { 19 return "com.google.common.testing.testModule"; 20 } testAddEqualObjectWithOArgConstructor()21public void testAddEqualObjectWithOArgConstructor() throws Exception { 22 com.google.common.testing.EqualsTesterTest testCase = new com.google.common.testing.EqualsTesterTest(); 23 testCase.setUp(); 24 testCase.testAddEqualObjectWithOArgConstructor(); 25 } 26 testAddNullEqualObject()27public void testAddNullEqualObject() throws Exception { 28 com.google.common.testing.EqualsTesterTest testCase = new com.google.common.testing.EqualsTesterTest(); 29 testCase.setUp(); 30 testCase.testAddNullEqualObject(); 31 } 32 testAddNullReference()33public void testAddNullReference() throws Exception { 34 com.google.common.testing.EqualsTesterTest testCase = new com.google.common.testing.EqualsTesterTest(); 35 testCase.setUp(); 36 testCase.testAddNullReference(); 37 } 38 testAddTwoEqualObjectsAtOnceWithNull()39public void testAddTwoEqualObjectsAtOnceWithNull() throws Exception { 40 com.google.common.testing.EqualsTesterTest testCase = new com.google.common.testing.EqualsTesterTest(); 41 testCase.setUp(); 42 testCase.testAddTwoEqualObjectsAtOnceWithNull(); 43 } 44 testEqualityGroups()45public void testEqualityGroups() throws Exception { 46 com.google.common.testing.EqualsTesterTest testCase = new com.google.common.testing.EqualsTesterTest(); 47 testCase.setUp(); 48 testCase.testEqualityGroups(); 49 } 50 testInvalidEqualsIncompatibleClass()51public void testInvalidEqualsIncompatibleClass() throws Exception { 52 com.google.common.testing.EqualsTesterTest testCase = new com.google.common.testing.EqualsTesterTest(); 53 testCase.setUp(); 54 testCase.testInvalidEqualsIncompatibleClass(); 55 } 56 testInvalidEqualsNull()57public void testInvalidEqualsNull() throws Exception { 58 com.google.common.testing.EqualsTesterTest testCase = new com.google.common.testing.EqualsTesterTest(); 59 testCase.setUp(); 60 testCase.testInvalidEqualsNull(); 61 } 62 testInvalidHashCode()63public void testInvalidHashCode() throws Exception { 64 com.google.common.testing.EqualsTesterTest testCase = new com.google.common.testing.EqualsTesterTest(); 65 testCase.setUp(); 66 testCase.testInvalidHashCode(); 67 } 68 testInvalidNotEqualsEqualObject()69public void testInvalidNotEqualsEqualObject() throws Exception { 70 com.google.common.testing.EqualsTesterTest testCase = new com.google.common.testing.EqualsTesterTest(); 71 testCase.setUp(); 72 testCase.testInvalidNotEqualsEqualObject(); 73 } 74 testNonreflexiveEquals()75public void testNonreflexiveEquals() throws Exception { 76 com.google.common.testing.EqualsTesterTest testCase = new com.google.common.testing.EqualsTesterTest(); 77 testCase.setUp(); 78 testCase.testNonreflexiveEquals(); 79 } 80 testNullEqualityGroup()81public void testNullEqualityGroup() throws Exception { 82 com.google.common.testing.EqualsTesterTest testCase = new com.google.common.testing.EqualsTesterTest(); 83 testCase.setUp(); 84 testCase.testNullEqualityGroup(); 85 } 86 testNullObjectInEqualityGroup()87public void testNullObjectInEqualityGroup() throws Exception { 88 com.google.common.testing.EqualsTesterTest testCase = new com.google.common.testing.EqualsTesterTest(); 89 testCase.setUp(); 90 testCase.testNullObjectInEqualityGroup(); 91 } 92 testSymmetryBroken()93public void testSymmetryBroken() throws Exception { 94 com.google.common.testing.EqualsTesterTest testCase = new com.google.common.testing.EqualsTesterTest(); 95 testCase.setUp(); 96 testCase.testSymmetryBroken(); 97 } 98 testTestEqualsEmptyLists()99public void testTestEqualsEmptyLists() throws Exception { 100 com.google.common.testing.EqualsTesterTest testCase = new com.google.common.testing.EqualsTesterTest(); 101 testCase.setUp(); 102 testCase.testTestEqualsEmptyLists(); 103 } 104 testTestEqualsEqualsObjects()105public void testTestEqualsEqualsObjects() throws Exception { 106 com.google.common.testing.EqualsTesterTest testCase = new com.google.common.testing.EqualsTesterTest(); 107 testCase.setUp(); 108 testCase.testTestEqualsEqualsObjects(); 109 } 110 testTransitivityBrokenAcrossEqualityGroups()111public void testTransitivityBrokenAcrossEqualityGroups() throws Exception { 112 com.google.common.testing.EqualsTesterTest testCase = new com.google.common.testing.EqualsTesterTest(); 113 testCase.setUp(); 114 testCase.testTransitivityBrokenAcrossEqualityGroups(); 115 } 116 testTransitivityBrokenInEqualityGroup()117public void testTransitivityBrokenInEqualityGroup() throws Exception { 118 com.google.common.testing.EqualsTesterTest testCase = new com.google.common.testing.EqualsTesterTest(); 119 testCase.setUp(); 120 testCase.testTransitivityBrokenInEqualityGroup(); 121 } 122 testUnequalObjectsInEqualityGroup()123public void testUnequalObjectsInEqualityGroup() throws Exception { 124 com.google.common.testing.EqualsTesterTest testCase = new com.google.common.testing.EqualsTesterTest(); 125 testCase.setUp(); 126 testCase.testUnequalObjectsInEqualityGroup(); 127 } 128 } 129