Skip to content

Commit

Permalink
test(jans-auth-server): fix TokenExchangeServiceTest (native sso) #2829
Browse files Browse the repository at this point in the history
… (#2830)
  • Loading branch information
yuriyz authored Nov 1, 2022
1 parent 9ac31bc commit c8c30d7
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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());
Expand Down

0 comments on commit c8c30d7

Please sign in to comment.