Skip to content

Commit

Permalink
Add API annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
marcphilipp committed Nov 26, 2024
1 parent e19eca8 commit 4dc74dd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

package org.junit.platform.launcher;

import static org.apiguardian.api.API.Status.EXPERIMENTAL;
import static org.apiguardian.api.API.Status.STABLE;

import org.apiguardian.api.API;
Expand Down Expand Up @@ -193,6 +194,7 @@ default void reportingEntryPublished(TestIdentifier testIdentifier, ReportEntry
* @param testIdentifier describes the test or container to which the entry pertains
* @param file the published {@code FileEntry}
*/
@API(status = EXPERIMENTAL, since = "1.12")
default void fileEntryPublished(TestIdentifier testIdentifier, FileEntry file) {
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ public static Event reportingEntryPublished(TestDescriptor testDescriptor, Repor
* @since 1.12
* @see EventType#FILE_ENTRY_PUBLISHED
*/
@API(status = EXPERIMENTAL, since = "1.12")
public static Event fileEntryPublished(TestDescriptor testDescriptor, FileEntry file) {
Preconditions.notNull(file, "FileEntry must not be null");
return new Event(EventType.FILE_ENTRY_PUBLISHED, testDescriptor, file);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

package org.junit.platform.testkit.engine;

import static org.apiguardian.api.API.Status.EXPERIMENTAL;
import static org.apiguardian.api.API.Status.MAINTAINED;
import static org.junit.platform.testkit.engine.Assertions.assertEquals;

Expand Down Expand Up @@ -134,6 +135,7 @@ public EventStatistics reportingEntryPublished(long expected) {
* @return this {@code EventStatistics} for method chaining
* @since 1.12
*/
@API(status = EXPERIMENTAL, since = "1.12")
public EventStatistics fileEntryPublished(long expected) {
this.executables.add(
() -> assertEquals(expected, this.events.fileEntryPublished().count(), "file entry published"));
Expand Down

0 comments on commit 4dc74dd

Please sign in to comment.