Permalink
Browse files

Moved core interfaces into separate module

  • Loading branch information...
aharin committed May 4, 2012
1 parent 3766a87 commit 313410e93855c3314d34985b344ee28fb368b8e0
View
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>com.thoughtworks.inproctester</groupId>
+ <artifactId>inproctester-project</artifactId>
+ <version>1.0.13-SNAPSHOT</version>
+ </parent>
+
+
+ <groupId>com.thoughtworks.inproctester</groupId>
+ <artifactId>inproctester-core</artifactId>
+ <version>1.0.13-SNAPSHOT</version>
+
+
+</project>
@@ -12,7 +12,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package com.thoughtworks.inproctester.jetty;
+package com.thoughtworks.inproctester.core;
public interface InProcConnection {
String getResponses(InProcRequest rawRequests);
@@ -1,4 +1,4 @@
-package com.thoughtworks.inproctester.jetty;
+package com.thoughtworks.inproctester.core;
import java.net.URI;
import java.util.Set;
@@ -1,7 +1,7 @@
package com.thoughtworks.inproctester.htmlunit;
import com.gargoylesoftware.htmlunit.WebRequest;
-import com.thoughtworks.inproctester.jetty.InProcRequest;
+import com.thoughtworks.inproctester.core.InProcRequest;
import com.thoughtworks.inproctester.jetty.UrlHelper;
import java.net.URI;
@@ -17,7 +17,7 @@
import com.gargoylesoftware.htmlunit.WebRequest;
import com.gargoylesoftware.htmlunit.WebResponseData;
import com.gargoylesoftware.htmlunit.util.NameValuePair;
-import com.thoughtworks.inproctester.jetty.InProcRequest;
+import com.thoughtworks.inproctester.core.InProcRequest;
import org.eclipse.jetty.testing.HttpTester;
import java.io.IOException;
@@ -16,8 +16,8 @@
import com.gargoylesoftware.htmlunit.*;
import com.gargoylesoftware.htmlunit.util.Cookie;
-import com.thoughtworks.inproctester.jetty.InProcConnection;
-import com.thoughtworks.inproctester.jetty.InProcRequest;
+import com.thoughtworks.inproctester.core.InProcConnection;
+import com.thoughtworks.inproctester.core.InProcRequest;
import org.apache.commons.lang.StringUtils;
import org.eclipse.jetty.testing.HttpTester;
@@ -17,9 +17,9 @@
import com.sun.jersey.api.client.*;
import com.sun.jersey.api.container.ContainerException;
import com.sun.jersey.core.header.InBoundHeaders;
+import com.thoughtworks.inproctester.core.InProcRequest;
import com.thoughtworks.inproctester.jetty.HttpAppTester;
import com.thoughtworks.inproctester.jetty.HttpAppTesterExtensions;
-import com.thoughtworks.inproctester.jetty.InProcRequest;
import com.thoughtworks.inproctester.jetty.UrlHelper;
import org.eclipse.jetty.testing.HttpTester;
@@ -14,6 +14,12 @@
<dependencies>
+ <dependency>
+ <groupId>com.thoughtworks.inproctester</groupId>
+ <artifactId>inproctester-core</artifactId>
+ <version>1.0.13-SNAPSHOT</version>
+ </dependency>
+
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>test-jetty-servlet</artifactId>
@@ -14,6 +14,8 @@
*/
package com.thoughtworks.inproctester.jetty;
+import com.thoughtworks.inproctester.core.InProcConnection;
+import com.thoughtworks.inproctester.core.InProcRequest;
import org.eclipse.jetty.server.LocalConnector;
import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.server.handler.ErrorHandler;
@@ -14,6 +14,8 @@
*/
package com.thoughtworks.inproctester.jetty;
+import com.thoughtworks.inproctester.core.InProcConnection;
+import com.thoughtworks.inproctester.core.InProcRequest;
import org.eclipse.jetty.testing.HttpTester;
import java.io.IOException;
@@ -14,6 +14,8 @@
*/
package com.thoughtworks.inproctester.jetty;
+import com.thoughtworks.inproctester.core.InProcConnection;
+import com.thoughtworks.inproctester.core.InProcRequest;
import org.eclipse.jetty.io.ByteArrayBuffer;
import org.eclipse.jetty.server.LocalConnector;
import org.eclipse.jetty.testing.HttpTester;
@@ -1,8 +1,8 @@
package com.thoughtworks.inproctester.resteasy;
+import com.thoughtworks.inproctester.core.InProcRequest;
import com.thoughtworks.inproctester.jetty.HttpAppTester;
import com.thoughtworks.inproctester.jetty.HttpAppTesterExtensions;
-import com.thoughtworks.inproctester.jetty.InProcRequest;
import org.eclipse.jetty.http.HttpException;
import org.eclipse.jetty.testing.HttpTester;
import org.jboss.resteasy.client.ClientExecutor;
@@ -1,6 +1,6 @@
package com.thoughtworks.inproctester.resteasy;
-import com.thoughtworks.inproctester.jetty.InProcRequest;
+import com.thoughtworks.inproctester.core.InProcRequest;
import com.thoughtworks.inproctester.jetty.UrlHelper;
import org.jboss.resteasy.client.ClientRequest;
@@ -14,8 +14,8 @@
*/
package com.thoughtworks.inproctester.webdriver;
+import com.thoughtworks.inproctester.core.InProcConnection;
import com.thoughtworks.inproctester.htmlunit.InProcessWebConnection;
-import com.thoughtworks.inproctester.jetty.InProcConnection;
import org.openqa.selenium.htmlunit.HtmlUnitDriver;
public class InProcessHtmlUnitDriver extends HtmlUnitDriver {
View
@@ -34,6 +34,7 @@
<modules>
+ <module>inproctester-core</module>
<module>inproctester-jetty</module>
<module>inproctester-htmlunit</module>
<module>inproctester-webdriver</module>

0 comments on commit 313410e

Please sign in to comment.