diff --git a/src/test/java/io/github/ititus/assertions/MyAssertions.java b/src/test/java/io/github/ititus/assertions/Assertions.java similarity index 82% rename from src/test/java/io/github/ititus/assertions/MyAssertions.java rename to src/test/java/io/github/ititus/assertions/Assertions.java index 07527c8..b936346 100644 --- a/src/test/java/io/github/ititus/assertions/MyAssertions.java +++ b/src/test/java/io/github/ititus/assertions/Assertions.java @@ -4,7 +4,7 @@ import io.github.ititus.si.quantity.value.QuantityValue; import org.assertj.core.api.InstanceOfAssertFactories; -public class MyAssertions implements InstanceOfAssertFactories { +public class Assertions implements InstanceOfAssertFactories { public static BigRationalAssert assertThat(BigRational actual) { return new BigRationalAssert(actual); @@ -14,6 +14,6 @@ public static QuantityValueAssert assertThat(QuantityValue actual) { return new QuantityValueAssert(actual); } - protected MyAssertions() { + protected Assertions() { } } diff --git a/src/test/java/io/github/ititus/math/number/BigRationalExpTests.java b/src/test/java/io/github/ititus/math/number/BigRationalExpTests.java index 3e50258..1bcfc35 100644 --- a/src/test/java/io/github/ititus/math/number/BigRationalExpTests.java +++ b/src/test/java/io/github/ititus/math/number/BigRationalExpTests.java @@ -3,7 +3,7 @@ import org.junit.jupiter.api.Test; -import static io.github.ititus.assertions.MyAssertions.assertThat; +import static io.github.ititus.assertions.Assertions.assertThat; import static io.github.ititus.math.number.BigRational.of; import static io.github.ititus.math.number.BigRationalConstants.*; import static io.github.ititus.math.number.BigRationalMath.exp; diff --git a/src/test/java/io/github/ititus/math/number/BigRationalLnTests.java b/src/test/java/io/github/ititus/math/number/BigRationalLnTests.java index c763954..5802c3d 100644 --- a/src/test/java/io/github/ititus/math/number/BigRationalLnTests.java +++ b/src/test/java/io/github/ititus/math/number/BigRationalLnTests.java @@ -3,7 +3,7 @@ import org.junit.jupiter.api.Test; -import static io.github.ititus.assertions.MyAssertions.assertThat; +import static io.github.ititus.assertions.Assertions.assertThat; import static io.github.ititus.math.number.BigRational.of; import static io.github.ititus.math.number.BigRationalConstants.*; import static io.github.ititus.math.number.BigRationalMath.ln; diff --git a/src/test/java/io/github/ititus/math/number/BigRationalSinTests.java b/src/test/java/io/github/ititus/math/number/BigRationalSinTests.java index 20266ff..f2dc544 100644 --- a/src/test/java/io/github/ititus/math/number/BigRationalSinTests.java +++ b/src/test/java/io/github/ititus/math/number/BigRationalSinTests.java @@ -3,7 +3,7 @@ import org.junit.jupiter.api.Test; -import static io.github.ititus.assertions.MyAssertions.assertThat; +import static io.github.ititus.assertions.Assertions.assertThat; import static io.github.ititus.math.number.BigRational.of; import static io.github.ititus.math.number.BigRationalConstants.*; import static io.github.ititus.math.number.BigRationalMath.sin; diff --git a/src/test/java/io/github/ititus/si/quantity/type/LengthTest.java b/src/test/java/io/github/ititus/si/quantity/type/LengthTest.java index 897b5a3..7497f0a 100644 --- a/src/test/java/io/github/ititus/si/quantity/type/LengthTest.java +++ b/src/test/java/io/github/ititus/si/quantity/type/LengthTest.java @@ -1,9 +1,9 @@ package io.github.ititus.si.quantity.type; -import io.github.ititus.assertions.MyAssertions; import io.github.ititus.si.quantity.Quantity; import org.junit.jupiter.api.Test; +import static io.github.ititus.assertions.Assertions.assertThat; import static io.github.ititus.math.number.BigRational.ofExp; import static io.github.ititus.si.prefix.MetricPrefix.CENTI; import static io.github.ititus.si.prefix.MetricPrefix.MILLI; @@ -20,7 +20,7 @@ public void metreToCentiMetre() { Quantity metres = METRE.get(1.35); Quantity centiMetres = metres.convertTo(METRE.prefix(CENTI)); - MyAssertions.assertThat(centiMetres.getValue()).isCloseTo(of(135), withPercentage(1.0)); + assertThat(centiMetres.getValue()).isCloseTo(of(135), withPercentage(1.0)); assertThat(centiMetres.getUnit().getSymbol()).isEqualTo("cm"); } @@ -29,7 +29,7 @@ public void milliMetreToMiles() { Quantity milliMetre = METRE.prefix(MILLI).get(23); Quantity miles = milliMetre.convertTo(MILE); - MyAssertions.assertThat(miles.getValue()).isCloseTo(of(ofExp(1429, -8)), withPercentage(1.0)); + assertThat(miles.getValue()).isCloseTo(of(ofExp(1429, -8)), withPercentage(1.0)); assertThat(miles.getUnit().getSymbol()).isEqualTo("mi"); } } diff --git a/src/test/java/io/github/ititus/si/quantity/type/MassTest.java b/src/test/java/io/github/ititus/si/quantity/type/MassTest.java index 224b3ca..e2e8cd6 100644 --- a/src/test/java/io/github/ititus/si/quantity/type/MassTest.java +++ b/src/test/java/io/github/ititus/si/quantity/type/MassTest.java @@ -1,9 +1,9 @@ package io.github.ititus.si.quantity.type; -import io.github.ititus.assertions.MyAssertions; import io.github.ititus.si.quantity.Quantity; import org.junit.jupiter.api.Test; +import static io.github.ititus.assertions.Assertions.assertThat; import static io.github.ititus.math.number.BigRational.ofExp; import static io.github.ititus.si.prefix.MetricPrefix.NANO; import static io.github.ititus.si.quantity.value.QuantityValue.of; @@ -19,7 +19,7 @@ public void kilogramToNanoGrams() { Quantity kiloGrams = KILOGRAM.get(1.35); Quantity nanoGrams = kiloGrams.convertTo(GRAM.prefix(NANO)); - MyAssertions.assertThat(nanoGrams.getValue()).isCloseTo(of(ofExp(135, 10)), withPercentage(1)); + assertThat(nanoGrams.getValue()).isCloseTo(of(ofExp(135, 10)), withPercentage(1)); assertThat(nanoGrams.getUnit().getSymbol()).isEqualTo("ng"); } }