Skip to content

Commit

Permalink
User assertSame for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
mnhock committed Jun 13, 2024
1 parent 24e8d1d commit 975f286
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/test/java/com/enofex/taikai/TaikaiRuleTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertSame;
import static org.junit.jupiter.api.Assertions.assertThrows;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.verify;
Expand Down Expand Up @@ -31,7 +32,7 @@ void shouldConstructWithArchRuleAndGivenConfiguration() {

assertNotNull(taikaiRule);
assertEquals(archRule, taikaiRule.archRule());
assertEquals(configuration, taikaiRule.configuration());
assertSame(configuration, taikaiRule.configuration());
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNull;
import static org.junit.jupiter.api.Assertions.assertSame;

import org.junit.jupiter.api.Test;

Expand All @@ -21,7 +22,7 @@ void shouldReturnNamespace() {
void shouldReturnConfigurers() {
ConfigurerContext context = new ConfigurerContext(VALID_NAMESPACE, VALID_CONFIGURERS);

assertEquals(VALID_CONFIGURERS, context.configurers());
assertSame(VALID_CONFIGURERS, context.configurers());
}

@Test
Expand Down

0 comments on commit 975f286

Please sign in to comment.