Example #1
1
  @Test
  public void shouldNotReturnScissorsName() {
    Rock mockRock = new Rock();

    mockRock.setName("falseRockName");

    assertNotSame(mockRock.getName(), this.rockName);
    assertFalse(mockRock.getName() == this.rockName);
  }
Example #2
0
  @Test
  public void shouldReturnRockName() {
    Rock mockRock = new Rock();

    mockRock.setName(rockName);

    assertEquals(mockRock.getName(), this.rockName);
    assertTrue(mockRock.getName() == this.rockName);
  }