Component evidence

Boolean Parameterized Test Source (junit/BooleanValueSource.java)

spring-boot · test-support/spring-boot-test-support/src/main/java/org/springframework/boot/testsupport/junit/BooleanValueSource.java · java · Apache-2.0
testingtag:parameterizedtag:annotationtag:boolean

JUnit annotation that supplies true and false values to parameterized test methods. Reuse to simplify boolean test matrices without custom argument providers.

Source preview first 800 characters · full source over MCP
// Source: https://github.com/spring-projects/spring-boot | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
/*
 * Copyright 2012-present the original author or authors.
 */

package org.springframework.boot.testsupport.junit;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import org.junit.jupiter.params.provider.ArgumentsSource;

/**
 * {@code @BooleanValueSource} is an {@link ArgumentsSource} which provides {@code true}
 * and {@code false} values to the annotated {@code @ParameterizedTest} method.
 *
 * @author Scott Frederick


... (truncated -- full source via MCP)