MCPcopy Index your code
hub / github.com/auth0/java-jwt / shouldGetContentType

Method shouldGetContentType

lib/src/test/java/com/auth0/jwt/JWTTest.java:332–341  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

330 }
331
332 @Test
333 public void shouldGetContentType() {
334 String token = "eyJhbGciOiJIUzI1NiIsImN0eSI6ImF3ZXNvbWUifQ.e30.AIm-pJDOaAyct9qKMlN-lQieqNDqc3d4erqUZc5SHAs";
335 DecodedJWT jwt = JWT.require(Algorithm.HMAC256("secret"))
336 .build()
337 .verify(token);
338
339 assertThat(jwt, is(notNullValue()));
340 assertThat(jwt.getContentType(), is("awesome"));
341 }
342
343 @Test
344 public void shouldGetType() {

Callers

nothing calls this directly

Calls 5

requireMethod · 0.95
HMAC256Method · 0.95
verifyMethod · 0.65
buildMethod · 0.65
getContentTypeMethod · 0.65

Tested by

no test coverage detected