diff --git a/jans-auth-server/server/src/test/java/io/jans/as/server/util/TestUtil.java b/jans-auth-server/server/src/test/java/io/jans/as/server/util/TestUtil.java index 50376b09352..42216511bf9 100644 --- a/jans-auth-server/server/src/test/java/io/jans/as/server/util/TestUtil.java +++ b/jans-auth-server/server/src/test/java/io/jans/as/server/util/TestUtil.java @@ -3,10 +3,10 @@ import io.jans.as.client.RegisterResponse; import io.jans.as.model.error.ErrorResponse; import jakarta.ws.rs.core.Response; +import org.apache.commons.lang3.StringUtils; import static io.jans.as.model.uma.TestUtil.assertNotBlank; -import static org.testng.Assert.assertEquals; -import static org.testng.Assert.assertNotNull; +import static org.testng.Assert.*; /** * @author yuriyz @@ -16,6 +16,14 @@ public class TestUtil { private TestUtil() { } + public static void assertEmpty(String s) { + assertTrue(StringUtils.isBlank(s)); + } + + public static void assertNotEmpty(String s) { + assertTrue(StringUtils.isNotBlank(s)); + } + public static void assert_(RegisterResponse response) { assertNotNull(response); assertNotBlank(response.getClientId());