Skip to content

Commit 1b0f9b8

Browse files
committed
DATACMNS-1439 - Polishing.
Extended copyright years. More reasonable defaults in the mock implementation of ImplementationDetectionConfiguration in case someone might want to reuse it in other test cases. Original pull request: #325.
1 parent c755c71 commit 1b0f9b8

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

src/test/java/org/springframework/data/repository/config/DefaultImplementationLookupConfigurationUnitTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2018 the original author or authors.
2+
* Copyright 2018-2019 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/test/java/org/springframework/data/repository/config/ImplementationDetectionConfigurationUnitTests.java

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2018 the original author or authors.
2+
* Copyright 2018-2019 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -20,13 +20,15 @@
2020
import org.junit.Test;
2121
import org.springframework.beans.factory.support.BeanDefinitionBuilder;
2222
import org.springframework.core.type.classreading.MetadataReaderFactory;
23+
import org.springframework.core.type.classreading.SimpleMetadataReaderFactory;
2324
import org.springframework.core.type.filter.TypeFilter;
2425
import org.springframework.data.util.Streamable;
2526

2627
/**
2728
* Unit tests for {@link ImplementationDetectionConfiguration}.
2829
*
2930
* @author Mark Paluch
31+
* @author Oliver Gierke
3032
*/
3133
public class ImplementationDetectionConfigurationUnitTests {
3234

@@ -48,22 +50,22 @@ private static class MockImplementationDetectionConfiguration implements Impleme
4850

4951
@Override
5052
public String getImplementationPostfix() {
51-
return null;
53+
return "Impl";
5254
}
5355

5456
@Override
5557
public Streamable<String> getBasePackages() {
56-
return null;
58+
return Streamable.empty();
5759
}
5860

5961
@Override
6062
public Streamable<TypeFilter> getExcludeFilters() {
61-
return null;
63+
return Streamable.empty();
6264
}
6365

6466
@Override
6567
public MetadataReaderFactory getMetadataReaderFactory() {
66-
return null;
68+
return new SimpleMetadataReaderFactory();
6769
}
6870
}
6971
}

src/test/java/org/springframework/data/repository/config/RepositoryFragmentConfigurationUnitTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2018 the original author or authors.
2+
* Copyright 2018-2019 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)