Skip to content

Commit edabff1

Browse files
committed
Updated project settings
1 parent 58d388e commit edabff1

13 files changed

+811
-811
lines changed

.classpath

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
1-
<?xml version="1.0" encoding="UTF-8"?>
2-
<classpath>
3-
<classpathentry kind="src" output="target/classes" path="src/main/java">
4-
<attributes>
5-
<attribute name="optional" value="true"/>
6-
<attribute name="maven.pomderived" value="true"/>
7-
</attributes>
8-
</classpathentry>
9-
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
10-
<attributes>
11-
<attribute name="optional" value="true"/>
12-
<attribute name="maven.pomderived" value="true"/>
13-
</attributes>
14-
</classpathentry>
15-
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7">
16-
<attributes>
17-
<attribute name="maven.pomderived" value="true"/>
18-
</attributes>
19-
</classpathentry>
20-
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
21-
<attributes>
22-
<attribute name="maven.pomderived" value="true"/>
23-
</attributes>
24-
</classpathentry>
25-
<classpathentry kind="output" path="target/classes"/>
26-
</classpath>
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<classpath>
3+
<classpathentry kind="src" output="target/classes" path="src/main/java">
4+
<attributes>
5+
<attribute name="optional" value="true"/>
6+
<attribute name="maven.pomderived" value="true"/>
7+
</attributes>
8+
</classpathentry>
9+
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
10+
<attributes>
11+
<attribute name="optional" value="true"/>
12+
<attribute name="maven.pomderived" value="true"/>
13+
</attributes>
14+
</classpathentry>
15+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7">
16+
<attributes>
17+
<attribute name="maven.pomderived" value="true"/>
18+
</attributes>
19+
</classpathentry>
20+
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
21+
<attributes>
22+
<attribute name="maven.pomderived" value="true"/>
23+
</attributes>
24+
</classpathentry>
25+
<classpathentry kind="output" path="target/classes"/>
26+
</classpath>

.project

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
<?xml version="1.0" encoding="UTF-8"?>
2-
<projectDescription>
3-
<name>jsr354-tck</name>
4-
<comment></comment>
5-
<projects>
6-
</projects>
7-
<buildSpec>
8-
<buildCommand>
9-
<name>org.eclipse.jdt.core.javabuilder</name>
10-
<arguments>
11-
</arguments>
12-
</buildCommand>
13-
<buildCommand>
14-
<name>org.eclipse.m2e.core.maven2Builder</name>
15-
<arguments>
16-
</arguments>
17-
</buildCommand>
18-
</buildSpec>
19-
<natures>
20-
<nature>org.eclipse.jdt.core.javanature</nature>
21-
<nature>org.eclipse.m2e.core.maven2Nature</nature>
22-
</natures>
23-
</projectDescription>
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>jsr354-tck</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.jdt.core.javabuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
<buildCommand>
14+
<name>org.eclipse.m2e.core.maven2Builder</name>
15+
<arguments>
16+
</arguments>
17+
</buildCommand>
18+
</buildSpec>
19+
<natures>
20+
<nature>org.eclipse.jdt.core.javanature</nature>
21+
<nature>org.eclipse.m2e.core.maven2Nature</nature>
22+
</natures>
23+
</projectDescription>
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
eclipse.preferences.version=1
2-
encoding//src/main/java=UTF-8
3-
encoding//src/test/java=UTF-8
4-
encoding/<project>=UTF-8
1+
eclipse.preferences.version=1
2+
encoding//src/main/java=UTF-8
3+
encoding//src/test/java=UTF-8
4+
encoding/<project>=UTF-8
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
eclipse.preferences.version=1
2-
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
3-
org.eclipse.jdt.core.compiler.compliance=1.7
4-
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
5-
org.eclipse.jdt.core.compiler.source=1.7
1+
eclipse.preferences.version=1
2+
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
3+
org.eclipse.jdt.core.compiler.compliance=1.7
4+
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
5+
org.eclipse.jdt.core.compiler.source=1.7
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
activeProfiles=
2-
eclipse.preferences.version=1
3-
resolveWorkspaceProjects=true
4-
version=1
1+
activeProfiles=
2+
eclipse.preferences.version=1
3+
resolveWorkspaceProjects=true
4+
version=1
Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,40 @@
1-
/*
2-
* Copyright (c) 2012, 2013, Werner Keil, Credit Suisse (Anatole Tresch).
3-
*
4-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
5-
* use this file except in compliance with the License. You may obtain a copy of
6-
* the License at
7-
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
9-
*
10-
* Unless required by applicable law or agreed to in writing, software
11-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13-
* License for the specific language governing permissions and limitations under
14-
* the License.
15-
*
16-
*
17-
* Contributors: Anatole Tresch - initial version.
18-
*/
19-
package org.javamoney.tck;
20-
21-
import java.lang.reflect.AccessibleObject;
22-
import java.util.Collection;
23-
24-
public interface JSR354TestConfiguration {
25-
26-
Collection<Class> getExceptionClasses();
27-
28-
Collection<Class> getAmountClasses();
29-
30-
Collection<Class> getCurrencyClasses();
31-
32-
Collection<Class> getAdjusters();
33-
34-
Collection<Class> getQueries();
35-
36-
AccessibleObject getConstructionMethod(Class type, Class... paramTypes);
37-
38-
<T> T create(Class<T> type, Object... params);
39-
40-
}
1+
/*
2+
* Copyright (c) 2012, 2013, Werner Keil, Credit Suisse (Anatole Tresch).
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
5+
* use this file except in compliance with the License. You may obtain a copy of
6+
* the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13+
* License for the specific language governing permissions and limitations under
14+
* the License.
15+
*
16+
*
17+
* Contributors: Anatole Tresch - initial version.
18+
*/
19+
package org.javamoney.tck;
20+
21+
import java.lang.reflect.AccessibleObject;
22+
import java.util.Collection;
23+
24+
public interface JSR354TestConfiguration {
25+
26+
Collection<Class> getExceptionClasses();
27+
28+
Collection<Class> getAmountClasses();
29+
30+
Collection<Class> getCurrencyClasses();
31+
32+
Collection<Class> getAdjusters();
33+
34+
Collection<Class> getQueries();
35+
36+
AccessibleObject getConstructionMethod(Class type, Class... paramTypes);
37+
38+
<T> T create(Class<T> type, Object... params);
39+
40+
}
Lines changed: 80 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -1,80 +1,80 @@
1-
package org.javamoney.tck;
2-
3-
import java.lang.reflect.AccessibleObject;
4-
import java.util.Arrays;
5-
import java.util.Collection;
6-
7-
import org.javamoney.moneta.CurrencyMismatchException;
8-
import org.javamoney.moneta.FastMoney;
9-
import org.javamoney.moneta.Money;
10-
import org.javamoney.moneta.MoneyCurrency;
11-
import org.javamoney.moneta.UnknownCurrencyException;
12-
13-
public final class TCKTestSetup {
14-
15-
private static JSRTestSetup TEST_SETUP = new JSRTestSetup();
16-
17-
private TCKTestSetup() {
18-
}
19-
20-
public static JSR354TestConfiguration getTestConfiguration() {
21-
// TODO load dynamicylly
22-
return TEST_SETUP;
23-
}
24-
25-
private static final class JSRTestSetup implements JSR354TestConfiguration {
26-
27-
@Override
28-
public Collection<Class> getExceptionClasses() {
29-
return Arrays
30-
.asList(new Class[] { CurrencyMismatchException.class,
31-
UnknownCurrencyException.class });
32-
}
33-
34-
@Override
35-
public Collection<Class> getAmountClasses() {
36-
return Arrays
37-
.asList(new Class[] { Money.class, FastMoney.class });
38-
}
39-
40-
@Override
41-
public Collection<Class> getCurrencyClasses() {
42-
return Arrays.asList(new Class[] { MoneyCurrency.class });
43-
}
44-
45-
@Override
46-
public Collection<Class> getAdjusters() {
47-
return Arrays
48-
.asList(new Class[] {});
49-
}
50-
51-
@Override
52-
public Collection<Class> getQueries() {
53-
return Arrays
54-
.asList(new Class[] {});
55-
}
56-
57-
@Override
58-
public AccessibleObject getConstructionMethod(Class type,
59-
Class... paramTypes) {
60-
// TODO Auto-generated method stub
61-
return null;
62-
}
63-
64-
@Override
65-
public <T> T create(Class<T> type, Object... params) {
66-
if (MoneyCurrency.class.equals(type)) {
67-
return (T) MoneyCurrency.of((String) params[0]);
68-
}
69-
if (Money.class.equals(type)) {
70-
return (T) Money.of((String) params[0], (Number) params[1]);
71-
}
72-
if (FastMoney.class.equals(type)) {
73-
return (T) FastMoney.of((String) params[0],
74-
(Number) params[1]);
75-
}
76-
return null;
77-
}
78-
}
79-
80-
}
1+
package org.javamoney.tck;
2+
3+
import java.lang.reflect.AccessibleObject;
4+
import java.util.Arrays;
5+
import java.util.Collection;
6+
7+
import org.javamoney.moneta.CurrencyMismatchException;
8+
import org.javamoney.moneta.FastMoney;
9+
import org.javamoney.moneta.Money;
10+
import org.javamoney.moneta.MoneyCurrency;
11+
import org.javamoney.moneta.UnknownCurrencyException;
12+
13+
public final class TCKTestSetup {
14+
15+
private static JSRTestSetup TEST_SETUP = new JSRTestSetup();
16+
17+
private TCKTestSetup() {
18+
}
19+
20+
public static JSR354TestConfiguration getTestConfiguration() {
21+
// TODO load dynamicylly
22+
return TEST_SETUP;
23+
}
24+
25+
private static final class JSRTestSetup implements JSR354TestConfiguration {
26+
27+
@Override
28+
public Collection<Class> getExceptionClasses() {
29+
return Arrays
30+
.asList(new Class[] { CurrencyMismatchException.class,
31+
UnknownCurrencyException.class });
32+
}
33+
34+
@Override
35+
public Collection<Class> getAmountClasses() {
36+
return Arrays
37+
.asList(new Class[] { Money.class, FastMoney.class });
38+
}
39+
40+
@Override
41+
public Collection<Class> getCurrencyClasses() {
42+
return Arrays.asList(new Class[] { MoneyCurrency.class });
43+
}
44+
45+
@Override
46+
public Collection<Class> getAdjusters() {
47+
return Arrays
48+
.asList(new Class[] {});
49+
}
50+
51+
@Override
52+
public Collection<Class> getQueries() {
53+
return Arrays
54+
.asList(new Class[] {});
55+
}
56+
57+
@Override
58+
public AccessibleObject getConstructionMethod(Class type,
59+
Class... paramTypes) {
60+
// TODO Auto-generated method stub
61+
return null;
62+
}
63+
64+
@Override
65+
public <T> T create(Class<T> type, Object... params) {
66+
if (MoneyCurrency.class.equals(type)) {
67+
return (T) MoneyCurrency.of((String) params[0]);
68+
}
69+
if (Money.class.equals(type)) {
70+
return (T) Money.of((String) params[0], (Number) params[1]);
71+
}
72+
if (FastMoney.class.equals(type)) {
73+
return (T) FastMoney.of((String) params[0],
74+
(Number) params[1]);
75+
}
76+
return null;
77+
}
78+
}
79+
80+
}

0 commit comments

Comments
 (0)