Repository: incubator-tamaya Updated Branches: refs/heads/master 63a76324b -> 72c817875
TAMAYA-60 Started to implement a builder for Configuration. Project: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/commit/72c81787 Tree: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/tree/72c81787 Diff: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/diff/72c81787 Branch: refs/heads/master Commit: 72c81787507a42bbe7419e8e931c597fa8a5f337 Parents: 63a7632 Author: Oliver B. Fischer <[email protected]> Authored: Sat Jan 24 13:38:30 2015 +0100 Committer: Oliver B. Fischer <[email protected]> Committed: Sat Jan 24 13:38:30 2015 +0100 ---------------------------------------------------------------------- modules/builder/pom.xml | 15 ++++++++ .../tamaya/builder/ConfigurationBuilder.java | 27 ++++++++++++++ .../builder/ConfigurationBuilderTest.java | 37 ++++++++++++++++++++ 3 files changed, 79 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/72c81787/modules/builder/pom.xml ---------------------------------------------------------------------- diff --git a/modules/builder/pom.xml b/modules/builder/pom.xml index 330cd97..6a3078d 100644 --- a/modules/builder/pom.xml +++ b/modules/builder/pom.xml @@ -40,6 +40,21 @@ under the License. <artifactId>tamaya-api</artifactId> <version>${project.version}</version> </dependency> + <dependency> + <groupId>org.hamcrest</groupId> + <artifactId>hamcrest-library</artifactId> + </dependency> + <dependency> + <groupId>org.hamcrest</groupId> + <artifactId>hamcrest-core</artifactId> + </dependency> + + <dependency> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + </dependency> + + </dependencies> http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/72c81787/modules/builder/src/main/java/org/apache/tamaya/builder/ConfigurationBuilder.java ---------------------------------------------------------------------- diff --git a/modules/builder/src/main/java/org/apache/tamaya/builder/ConfigurationBuilder.java b/modules/builder/src/main/java/org/apache/tamaya/builder/ConfigurationBuilder.java new file mode 100644 index 0000000..c500031 --- /dev/null +++ b/modules/builder/src/main/java/org/apache/tamaya/builder/ConfigurationBuilder.java @@ -0,0 +1,27 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.tamaya.builder; + +import org.apache.tamaya.Configuration; + +public class ConfigurationBuilder { + public Configuration build() { + return null; + } +} http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/72c81787/modules/builder/src/test/java/org/apache/tamaya/builder/ConfigurationBuilderTest.java ---------------------------------------------------------------------- diff --git a/modules/builder/src/test/java/org/apache/tamaya/builder/ConfigurationBuilderTest.java b/modules/builder/src/test/java/org/apache/tamaya/builder/ConfigurationBuilderTest.java new file mode 100644 index 0000000..d034391 --- /dev/null +++ b/modules/builder/src/test/java/org/apache/tamaya/builder/ConfigurationBuilderTest.java @@ -0,0 +1,37 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.tamaya.builder; + +import org.apache.tamaya.Configuration; +import org.junit.Test; + +import static org.hamcrest.MatcherAssert.assertThat; +import static org.hamcrest.Matchers.notNullValue; + +public class ConfigurationBuilderTest { + + @Test + public void buildCanBuildEmptyConfiguration() { + ConfigurationBuilder builder = new ConfigurationBuilder(); + + Configuration config = builder.build(); + + // @todo assertThat(config, notNullValue()); + } +}
