Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2006-2023 the original author or authors.
* Copyright 2006-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -61,10 +61,12 @@

import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.junit.jupiter.api.Assertions.assertInstanceOf;

/**
* @author Dave Syer
* @author Mahmoud Ben Hassine
* @author jojoldu
*
*/
class FaultTolerantStepFactoryBeanRetryTests {
Expand Down Expand Up @@ -134,7 +136,7 @@ void testType() {
@SuppressWarnings("cast")
@Test
void testDefaultValue() throws Exception {
assertTrue(factory.getObject() instanceof Step);
assertInstanceOf(Step.class, factory.getObject());
}

@Test
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2006-2023 the original author or authors.
* Copyright 2006-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -35,10 +35,13 @@

import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.junit.jupiter.api.Assertions.assertInstanceOf;


/**
* @author Dave Syer
* @author Mahmoud Ben Hassine
* @author jojoldu
*
*/
class RepeatOperationsStepFactoryBeanTests {
Expand Down Expand Up @@ -66,7 +69,7 @@ void testType() {
@Test
@SuppressWarnings("cast")
void testDefaultValue() throws Exception {
assertTrue(factory.getObject() instanceof Step);
assertInstanceOf(Step.class, factory.getObject());
}

@Test
Expand Down