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
Expand Up @@ -175,7 +175,6 @@ private static Object[] youngAdultPersonParams() {
public void personIsNamedAdult(int age, boolean valid) {
}


private static Object[] namedPeopleParams() {
return new Object[]{new Object[]{13, false}, new Object[]{17, false}};
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ class TestClass {
@Test
void test() {
try (MockedConstruction<A> aMockedConstruction = mockConstruction(A.class, (mock, context) -> {
when(mock.method(any())).thenReturn("XYZ");
})) {
when(mock.method(any())).thenReturn("XYZ");
})) {
A instance = new A();
assertEquals("XYZ", instance.method("test"));
}
Expand Down Expand Up @@ -201,8 +201,8 @@ class TestClass {
@Test
void test() {
try (MockedConstruction<A> aMockedConstruction = mockConstruction(A.class, (mock, context) -> {
when(mock.method(any())).thenReturn("XYZ");
})) {
when(mock.method(any())).thenReturn("XYZ");
})) {
A instance1 = new A();
A instance2 = new A();
assertNotNull(instance1);
Expand Down Expand Up @@ -309,8 +309,8 @@ class TestClass {
@Test
void test() {
try (MockedConstruction<A> aMockedConstruction = Mockito.mockConstruction(A.class, (mock, context) -> {
when(mock.method(any())).thenReturn("XYZ");
})) {
when(mock.method(any())).thenReturn("XYZ");
})) {
A instance = new A();
assertEquals("XYZ", instance.method("test"));
}
Expand Down Expand Up @@ -388,9 +388,9 @@ class TestClass {
@Test
void test() {
try (MockedConstruction<ItemInflator> itemInflatorMockedConstruction = Mockito.mockConstruction(ItemInflator.class, (mock, context) -> {
when(mock.inflateNodesWithItemStore(anyList())).thenReturn(productList);
when(mock.inflateWithIRO(anyList())).thenReturn(productList);
})) {
when(mock.inflateNodesWithItemStore(anyList())).thenReturn(productList);
when(mock.inflateWithIRO(anyList())).thenReturn(productList);
})) {
ItemInflator inflator = new ItemInflator();
assertNotNull(inflator.inflateNodesWithItemStore(List.of()));
assertNotNull(inflator.inflateWithIRO(List.of()));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,6 @@ public class ExternalAPIServiceTest {
import org.mockito.junit.jupiter.MockitoSettings;
import org.mockito.quality.Strictness;


@ExtendWith(MockitoExtension.class)
@MockitoSettings(strictness = Strictness.WARN)
public class ExternalAPIServiceTest {
Expand Down