Home | History | Annotate | Download | only in testing
      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 {
     18 @Override public String getModuleName() {
     19   return "com.google.common.testing.testModule";
     20 }
     21 public 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 
     27 public 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 
     33 public 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 
     39 public 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 
     45 public 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 
     51 public 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 
     57 public 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 
     63 public 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 
     69 public 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 
     75 public 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 
     81 public 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 
     87 public 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 
     93 public 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 
     99 public 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 
    105 public 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 
    111 public 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 
    117 public 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 
    123 public 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