We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
public class Number { public static boolean isOdd(final int number) { return number % 2 != 0; } } @ParameterizedTest @ValueSource(ints = {1, 3, 7, -3, 157, Integer.MAX_VALUE}) // six numbers void isOdd_ShouldReturnTrueForOddNumbers(int number) { assertTrue(Numbers.isOdd(number)); }
<appender name="DEL_DATA" class="ch.qos.logback.core.FileAppender"> <file>${log.dir}/${log.filename}-DelData.log</file> <layout class="ch.qos.logback.classic.PatternLayout"> <pattern>%date{MM-dd HH:mm:ss.SSS} %-10.10thread %-5level %logger{35} %5line %msg%n</pattern> </layout> <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> <fileNamePattern>${log.dir}/${log.filename}-DelData.%d{yyyy-MM-dd}.log</fileNamePattern> </rollingPolicy> </appender> <appender name="DEL_PERSONAL" class="ch.qos.logback.core.FileAppender"> <file>${log.dir}/${log.filename}-DelPersonal.log</file> <layout class="ch.qos.logback.classic.PatternLayout"> <pattern>%date{MM-dd HH:mm:ss.SSS} %-10.10thread %-5level %logger{35} %5line %msg%n</pattern> </layout> <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> <fileNamePattern>${log.dir}/${log.filename}-DelPersonal.%d{yyyy-MM-dd}.log</fileNamePattern> </rollingPolicy> </appender> <logger name="com.test.batch.task.DelTask" level="INFO" additivity="false"> <appender-ref ref="DEL_DATA" /> </logger> <logger name="com.test.batch.task.DelPersonTask" level="INFO" additivity="false"> <appender-ref ref="DEL_PERSONAL" /> </logger>
The text was updated successfully, but these errors were encountered:
No branches or pull requests
@ParameterizedTest, @valuesource
logback
The text was updated successfully, but these errors were encountered: