From b7f31513f8150c879c70bfe1ccccb04487f521f6 Mon Sep 17 00:00:00 2001 From: "Amitabh.Tiwari" Date: Wed, 23 Jun 2021 10:22:35 +0530 Subject: [PATCH] Corrected test as per review comments --- .../stringtobybiginteger/StringToBigIntegerUnitTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core-java-modules/core-java-string-conversions-2/src/test/java/com/baeldung/stringtobybiginteger/StringToBigIntegerUnitTest.java b/core-java-modules/core-java-string-conversions-2/src/test/java/com/baeldung/stringtobybiginteger/StringToBigIntegerUnitTest.java index b535797d44..54c9617718 100644 --- a/core-java-modules/core-java-string-conversions-2/src/test/java/com/baeldung/stringtobybiginteger/StringToBigIntegerUnitTest.java +++ b/core-java-modules/core-java-string-conversions-2/src/test/java/com/baeldung/stringtobybiginteger/StringToBigIntegerUnitTest.java @@ -30,13 +30,13 @@ public class StringToBigIntegerUnitTest { @Test(expected = NumberFormatException.class) public void whenGetStringWithRadix_thenThrowError() { - final String inputString = "Hello Baeldung"; + final String inputString = "290f98"; new BigInteger(inputString, 7); } @Test public void whenGetStringUsingByte_thenOk() { - final String inputString = "Hello Baeldung"; + final String inputString = "290f98"; byte[] inputStringBytes = inputString.getBytes(); BigInteger result = new BigInteger(inputStringBytes); assertEquals("Hello Baeldung", new String(result.toByteArray()));