You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tamaya.apache.org by pl...@apache.org on 2015/04/24 21:59:24 UTC
[6/6] incubator-tamaya git commit: Renamed some filters in a test.
Renamed some filters in a test.
Project: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/commit/aa4ee505
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/tree/aa4ee505
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/diff/aa4ee505
Branch: refs/heads/master
Commit: aa4ee50594b2b488d799d9cf8665b2b0be30663a
Parents: 95beec5
Author: Oliver B. Fischer <pl...@apache.org>
Authored: Sat Apr 25 00:19:55 2015 +0200
Committer: Oliver B. Fischer <pl...@apache.org>
Committed: Sat Apr 25 00:19:55 2015 +0200
----------------------------------------------------------------------
.../core/internal/DefaultConfigurationTest.java | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/aa4ee505/java8/core/src/test/java/org/apache/tamaya/core/internal/DefaultConfigurationTest.java
----------------------------------------------------------------------
diff --git a/java8/core/src/test/java/org/apache/tamaya/core/internal/DefaultConfigurationTest.java b/java8/core/src/test/java/org/apache/tamaya/core/internal/DefaultConfigurationTest.java
index 3ddec4f..539cd8d 100644
--- a/java8/core/src/test/java/org/apache/tamaya/core/internal/DefaultConfigurationTest.java
+++ b/java8/core/src/test/java/org/apache/tamaya/core/internal/DefaultConfigurationTest.java
@@ -42,10 +42,10 @@ import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.verifyNoMoreInteractions;
public class DefaultConfigurationTest {
- private AppendingAFilter FILTER_APPENDING_A = new AppendingAFilter();
- private PrependingBFilter FILTER_PREPENDING_B = new PrependingBFilter();
- private PrependingCFilter FILTER_PREPENDING_C = new PrependingCFilter();
- private PrependingDFilter FILTER_PREPENDING_D = new PrependingDFilter();
+ private TestAppendingAFilter FILTER_APPENDING_A = new TestAppendingAFilter();
+ private TestPrependingBFilter FILTER_PREPENDING_B = new TestPrependingBFilter();
+ private TestPrependingCFilter FILTER_PREPENDING_C = new TestPrependingCFilter();
+ private TestPrependingDFilter FILTER_PREPENDING_D = new TestPrependingDFilter();
/* =
* =- Section with tests for filtering properties with PropertyFilters
@@ -80,8 +80,8 @@ public class DefaultConfigurationTest {
public void filteringOfGivenValueWorksWithTwoFiltersWithoutPriority() {
List<PropertyFilter> filters = new ArrayList<>();
- AppendingAFilter filterA = spy(FILTER_APPENDING_A);
- PrependingBFilter filterB = spy(FILTER_PREPENDING_B);
+ TestAppendingAFilter filterA = spy(FILTER_APPENDING_A);
+ TestPrependingBFilter filterB = spy(FILTER_PREPENDING_B);
filters.add(filterA);
filters.add(filterB);
@@ -163,7 +163,7 @@ public class DefaultConfigurationTest {
assertThat(value, equalTo("$D$CV"));
}
- private static class AppendingAFilter implements PropertyFilter {
+ private static class TestAppendingAFilter implements PropertyFilter {
@Override
public String filterProperty(String key, String value) {
return value.endsWith("A$")
@@ -172,7 +172,7 @@ public class DefaultConfigurationTest {
}
}
- private static class PrependingBFilter implements PropertyFilter {
+ private static class TestPrependingBFilter implements PropertyFilter {
@Override
public String filterProperty(String key, String value) {
return value.startsWith("$B")
@@ -182,7 +182,7 @@ public class DefaultConfigurationTest {
}
@Priority(987)
- private static class PrependingCFilter implements PropertyFilter {
+ private static class TestPrependingCFilter implements PropertyFilter {
@Override
public String filterProperty(String key, String value) {
return value.contains("$C")
@@ -192,7 +192,7 @@ public class DefaultConfigurationTest {
}
@Priority(111)
- private static class PrependingDFilter implements PropertyFilter {
+ private static class TestPrependingDFilter implements PropertyFilter {
@Override
public String filterProperty(String key, String value) {
return value.contains("$D")