This commit is contained in:
Stéphane Nicoll
2024-01-15 11:17:11 +01:00
parent e1236a8672
commit 0c42965fc3
71 changed files with 543 additions and 828 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2023 the original author or authors.
* Copyright 2002-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.
@@ -61,9 +61,9 @@ class MockSpringFactoriesLoaderTests {
private void assertThatLoaderHasTestFactories(MockSpringFactoriesLoader loader) {
List<TestFactoryType> factories = loader.load(TestFactoryType.class);
assertThat(factories).hasSize(2);
assertThat(factories).element(0).isInstanceOf(TestFactoryOne.class);
assertThat(factories).element(1).isInstanceOf(TestFactoryTwo.class);
assertThat(factories).satisfiesExactly(
zero -> assertThat(zero).isInstanceOf(TestFactoryOne.class),
one -> assertThat(one).isInstanceOf(TestFactoryTwo.class));
}
interface TestFactoryType {