Skip to content

Commit

Permalink
change assertTrue (instanceof) -> assertInstanceOf
Browse files Browse the repository at this point in the history
  • Loading branch information
jojoldu authored and fmbenhassine committed Sep 19, 2024
1 parent b7339c2 commit 8f7f37b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
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

0 comments on commit 8f7f37b

Please sign in to comment.