Home / Class/ DockerRegistryTokenAuthenticationTests Class — spring-boot Architecture

DockerRegistryTokenAuthenticationTests Class — spring-boot Architecture

Architecture documentation for the DockerRegistryTokenAuthenticationTests class in DockerRegistryTokenAuthenticationTests.java from the spring-boot codebase.

Entity Profile

Relationship Graph

Source Code

buildpack/spring-boot-buildpack-platform/src/test/java/org/springframework/boot/buildpack/platform/docker/configuration/DockerRegistryTokenAuthenticationTests.java lines 35–45

class DockerRegistryTokenAuthenticationTests extends AbstractJsonTests {

	@Test
	void createAuthHeaderReturnsEncodedHeader() throws IOException, JSONException {
		DockerRegistryTokenAuthentication auth = new DockerRegistryTokenAuthentication("tokenvalue");
		String header = auth.getAuthHeader();
		String expectedJson = StreamUtils.copyToString(getContent("auth-token.json"), StandardCharsets.UTF_8);
		JSONAssert.assertEquals(expectedJson, new String(Base64.getUrlDecoder().decode(header)), true);
	}

}

Domain

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free