Skip to content

Commit cdcc4bf

Browse files
committed
Continued building Condition expressions
1 parent e88e007 commit cdcc4bf

26 files changed

Lines changed: 516 additions & 38 deletions

File tree

‎api-tests/pom.xml‎

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
3+
<!-- Copyright 2011 Lincoln Baxter, III Licensed under the Apache License,
4+
Version 2.0 (the "License"); you may not use this file except in compliance
5+
with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
6+
Unless required by applicable law or agreed to in writing, software distributed
7+
under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES
8+
OR CONDITIONS OF ANY KIND, either express or implied. See the License for
9+
the specific language governing permissions and limitations under the License. -->
10+
11+
<project
12+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
13+
xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
14+
<modelVersion>4.0.0</modelVersion>
15+
16+
<parent>
17+
<groupId>com.ocpsoft.rewrite</groupId>
18+
<artifactId>rewrite-parent</artifactId>
19+
<version>1.0.0-SNAPSHOT</version>
20+
<relativePath>../</relativePath>
21+
</parent>
22+
23+
<artifactId>rewrite-api-tests</artifactId>
24+
25+
<dependencies>
26+
<dependency>
27+
<groupId>com.ocpsoft.rewrite</groupId>
28+
<artifactId>rewrite-api</artifactId>
29+
</dependency>
30+
<dependency>
31+
<groupId>com.ocpsoft.rewrite</groupId>
32+
<artifactId>rewrite-test-harness</artifactId>
33+
</dependency>
34+
</dependencies>
35+
36+
</project>

‎api-tests/src/META-INF/MANIFEST.MF‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Manifest-Version: 1.0
2+
Class-Path:
3+
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/*
2+
* Copyright 2011 <a href="mailto:lincolnbaxter@gmail.com">Lincoln Baxter, III</a>
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of 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,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
package com.ocpsoft.rewrite;
17+
18+
/**
19+
* Marker interface declaring the root package of this project.
20+
*
21+
* @author <a href="mailto:lincolnbaxter@gmail.com">Lincoln Baxter, III</a>
22+
*/
23+
public interface Root
24+
{
25+
26+
}

api/src/test/java/com/ocpsoft/rewrite/config/AndTest.java renamed to api-tests/src/test/java/com/ocpsoft/rewrite/config/AndTest.java

File renamed without changes.

api/src/test/java/com/ocpsoft/rewrite/config/MockRewrite.java renamed to api-tests/src/test/java/com/ocpsoft/rewrite/config/MockRewrite.java

File renamed without changes.

api/src/test/java/com/ocpsoft/rewrite/config/MockRewriteContext.java renamed to api-tests/src/test/java/com/ocpsoft/rewrite/config/MockRewriteContext.java

File renamed without changes.

api/src/test/java/com/ocpsoft/rewrite/config/NotTest.java renamed to api-tests/src/test/java/com/ocpsoft/rewrite/config/NotTest.java

File renamed without changes.

api/src/test/java/com/ocpsoft/rewrite/config/OrTest.java renamed to api-tests/src/test/java/com/ocpsoft/rewrite/config/OrTest.java

File renamed without changes.
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
/*
2+
* Copyright 2011 <a href="mailto:lincolnbaxter@gmail.com">Lincoln Baxter, III</a>
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of 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,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
package com.ocpsoft.rewrite.services;
17+
18+
import java.util.List;
19+
20+
import junit.framework.Assert;
21+
22+
import org.junit.Test;
23+
24+
import com.ocpsoft.rewrite.util.Iterators;
25+
26+
/**
27+
* @author <a href="mailto:lincolnbaxter@gmail.com">Lincoln Baxter, III</a>
28+
*
29+
*/
30+
public class ServiceLoaderTest
31+
{
32+
@Test
33+
@SuppressWarnings("unchecked")
34+
public void test()
35+
{
36+
ServiceLoader<TestService> services = ServiceLoader.load(TestService.class);
37+
List<TestService> list = Iterators.asList(services);
38+
Assert.assertFalse(list.isEmpty());
39+
}
40+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/*
2+
* Copyright 2011 <a href="mailto:lincolnbaxter@gmail.com">Lincoln Baxter, III</a>
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of 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,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
package com.ocpsoft.rewrite.services;
17+
18+
/**
19+
* @author <a href="mailto:lincolnbaxter@gmail.com">Lincoln Baxter, III</a>
20+
*
21+
*/
22+
public interface TestService
23+
{
24+
25+
}

0 commit comments

Comments
 (0)