Skip to content

Commit

Permalink
Added test for fixed equals method (#224).
Browse files Browse the repository at this point in the history
  • Loading branch information
akune committed Dec 14, 2015
1 parent bd16950 commit 034e74e
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package org.immutables.fixture.modifiable;

import static org.hamcrest.core.IsEqual.equalTo;
import static org.immutables.check.Checkers.*;

import org.junit.Test;

public class ModifiablesTest {
Expand Down Expand Up @@ -81,6 +83,11 @@ public void uninitializedEquals() {
check(c1).not().is(c2);
}

@Test
public void equalsWithDifferenObjectType() {
check(ModifiableCompanion.create()).not().is(equalTo(new Object()));
}

@Test
public void defaults() {
ModifiableStandalone m = ModifiableStandalone.create();
Expand Down

0 comments on commit 034e74e

Please sign in to comment.