Skip to content

Commit

Permalink
small refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
hajk1 committed Jan 10, 2024
1 parent 91866cb commit f9be101
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions src/test/java/org/iban4j/IbanTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,26 @@
*/
package org.iban4j;

import org.junit.jupiter.api.Disabled;
import static org.hamcrest.CoreMatchers.containsString;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.CoreMatchers.not;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.iban4j.TestDataHelper.defaultExceptionMessage;
import static org.junit.jupiter.api.Assertions.assertAll;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertThrows;

import java.util.Random;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import java.util.Random;

import static org.hamcrest.CoreMatchers.*;
import static org.hamcrest.MatcherAssert.*;
import static org.iban4j.TestDataHelper.defaultExceptionMessage;
import static org.junit.jupiter.api.Assertions.*;

@DisplayName("Iban general test")
public class IbanTest {

public static class IbanGenerationTest {

@DisplayName("IBANs With Same Data Should Be Equal")
@DisplayName("IBANs With Same Data Should Be Equal")
@Test
public void ibansWithSameDataShouldBeEqual() {
Iban iban1 = new Iban.Builder()
Expand Down Expand Up @@ -295,7 +299,7 @@ public void ibanConstructionSeeded() {
);
}

private static void assertIbanUtilRandomWithSeedEquals(
private void assertIbanUtilRandomWithSeedEquals(
String expected,
int seed
) {
Expand Down Expand Up @@ -432,5 +436,4 @@ public void ibanConstructionWithLackingNationalCheckDigitShouldThrowExceptionIfV
defaultExceptionMessage);
assertThat(thrown.getMessage(), containsString("nationalCheckDigit is required; it cannot be null"));
}
}
}

0 comments on commit f9be101

Please sign in to comment.