Skip to content

Commit 42e277d

Browse files
committed
Remove JctCompilationAssert#nativeHeaders for v1.0.0
1 parent 077e46e commit 42e277d

File tree

2 files changed

+0
-39
lines changed

2 files changed

+0
-39
lines changed

java-compiler-testing/src/main/java/io/github/ascopes/jct/assertions/JctCompilationAssert.java

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -338,24 +338,6 @@ public ModuleContainerGroupAssert sourceOutputModules() {
338338
return outputGroup(StandardLocation.SOURCE_OUTPUT).modules();
339339
}
340340

341-
/**
342-
* Get assertions on the path containing header outputs, if it exists.
343-
*
344-
* <p>If not configured, the value being asserted on will be {@code null} in value.
345-
*
346-
* @return the assertions to perform on the header outputs.
347-
* @throws AssertionError if the compilation was null, or no group for the location
348-
* was found.
349-
* @deprecated this method is rarely needed, so is being removed in v1.0.0. Use
350-
* {@link #outputGroup(Location)}, passing {@link StandardLocation#NATIVE_HEADER_OUTPUT} as the
351-
* first parameter instead.
352-
*/
353-
@Deprecated(since = "0.6.0", forRemoval = true)
354-
@SuppressWarnings("DeprecatedIsStillUsed")
355-
public OutputContainerGroupAssert generatedHeaders() {
356-
return outputGroup(StandardLocation.NATIVE_HEADER_OUTPUT);
357-
}
358-
359341
/**
360342
* Get assertions on the path containing the class path, if it exists.
361343
*

java-compiler-testing/src/test/java/io/github/ascopes/jct/tests/unit/assertions/JctCompilationAssertTest.java

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -903,27 +903,6 @@ void sourceOutputModulesPerformsTheExpectedOperations() {
903903
assertThat(actualAssertions).isSameAs(expectedAssertions);
904904
}
905905

906-
@DisplayName(".generatedHeaders() performs the expected operations")
907-
@SuppressWarnings("removal")
908-
@Test
909-
void generatedHeadersPerformsTheExpectedOperations() {
910-
// Given
911-
var expectedAssertions = mock(OutputContainerGroupAssert.class);
912-
913-
var assertions = mock(JctCompilationAssert.class);
914-
when(assertions.generatedHeaders()).thenCallRealMethod();
915-
when(assertions.outputGroup(any())).thenReturn(expectedAssertions);
916-
917-
// When
918-
var actualAssertions = assertions.generatedHeaders();
919-
920-
// Then
921-
verify(assertions).generatedHeaders();
922-
verify(assertions).outputGroup(StandardLocation.NATIVE_HEADER_OUTPUT);
923-
verifyNoMoreInteractions(assertions);
924-
assertThat(actualAssertions).isSameAs(expectedAssertions);
925-
}
926-
927906
@DisplayName(".classPath() performs the expected operations")
928907
@SuppressWarnings("removal")
929908
@Test

0 commit comments

Comments
 (0)