Bladeren bron

Revert "nhu testing wiremock"

This reverts commit 9ae921b8485d45d49c6a9c5a3a9c76d943a1ab32.
Trinh Tong 6 jaren geleden
bovenliggende
commit
7045a3267b

+ 6
- 32
Client/Client.iml Bestand weergeven

@@ -6,47 +6,21 @@
6 6
     <content url="file://$MODULE_DIR$">
7 7
       <sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
8 8
       <sourceFolder url="file://$MODULE_DIR$/src/test" isTestSource="true" />
9
-      <sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
10 9
       <excludeFolder url="file://$MODULE_DIR$/target" />
11 10
     </content>
12 11
     <orderEntry type="inheritedJdk" />
13 12
     <orderEntry type="sourceFolder" forTests="false" />
14 13
     <orderEntry type="library" scope="TEST" name="Maven: junit:junit:4.12" level="project" />
15 14
     <orderEntry type="library" scope="TEST" name="Maven: org.hamcrest:hamcrest-core:1.3" level="project" />
16
-    <orderEntry type="library" scope="TEST" name="Maven: com.github.tomakehurst:wiremock:2.19.0" level="project" />
17
-    <orderEntry type="library" scope="TEST" name="Maven: org.eclipse.jetty:jetty-server:9.2.24.v20180105" level="project" />
18
-    <orderEntry type="library" scope="TEST" name="Maven: javax.servlet:javax.servlet-api:3.1.0" level="project" />
19
-    <orderEntry type="library" scope="TEST" name="Maven: org.eclipse.jetty:jetty-http:9.2.24.v20180105" level="project" />
20
-    <orderEntry type="library" scope="TEST" name="Maven: org.eclipse.jetty:jetty-io:9.2.24.v20180105" level="project" />
21
-    <orderEntry type="library" scope="TEST" name="Maven: org.eclipse.jetty:jetty-servlet:9.2.24.v20180105" level="project" />
22
-    <orderEntry type="library" scope="TEST" name="Maven: org.eclipse.jetty:jetty-security:9.2.24.v20180105" level="project" />
23
-    <orderEntry type="library" scope="TEST" name="Maven: org.eclipse.jetty:jetty-servlets:9.2.24.v20180105" level="project" />
24
-    <orderEntry type="library" scope="TEST" name="Maven: org.eclipse.jetty:jetty-continuation:9.2.24.v20180105" level="project" />
25
-    <orderEntry type="library" scope="TEST" name="Maven: org.eclipse.jetty:jetty-util:9.2.24.v20180105" level="project" />
26
-    <orderEntry type="library" scope="TEST" name="Maven: org.eclipse.jetty:jetty-webapp:9.2.24.v20180105" level="project" />
27
-    <orderEntry type="library" scope="TEST" name="Maven: org.eclipse.jetty:jetty-xml:9.2.24.v20180105" level="project" />
28
-    <orderEntry type="library" scope="TEST" name="Maven: com.google.guava:guava:20.0" level="project" />
29
-    <orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-core:2.8.11" level="project" />
30
-    <orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-annotations:2.8.11" level="project" />
31
-    <orderEntry type="library" scope="TEST" name="Maven: org.xmlunit:xmlunit-core:2.5.1" level="project" />
32
-    <orderEntry type="library" scope="TEST" name="Maven: org.xmlunit:xmlunit-legacy:2.5.1" level="project" />
33
-    <orderEntry type="library" scope="TEST" name="Maven: com.jayway.jsonpath:json-path:2.4.0" level="project" />
34
-    <orderEntry type="library" scope="TEST" name="Maven: net.minidev:json-smart:2.3" level="project" />
35
-    <orderEntry type="library" scope="TEST" name="Maven: net.minidev:accessors-smart:1.2" level="project" />
36
-    <orderEntry type="library" scope="TEST" name="Maven: org.ow2.asm:asm:5.0.4" level="project" />
37
-    <orderEntry type="library" scope="TEST" name="Maven: org.slf4j:slf4j-api:1.7.12" level="project" />
38
-    <orderEntry type="library" scope="TEST" name="Maven: net.sf.jopt-simple:jopt-simple:5.0.3" level="project" />
39
-    <orderEntry type="library" scope="TEST" name="Maven: org.apache.commons:commons-lang3:3.7" level="project" />
40
-    <orderEntry type="library" scope="TEST" name="Maven: com.flipkart.zjsonpatch:zjsonpatch:0.4.4" level="project" />
41
-    <orderEntry type="library" scope="TEST" name="Maven: com.github.jknack:handlebars:4.0.7" level="project" />
42
-    <orderEntry type="library" scope="TEST" name="Maven: org.antlr:antlr4-runtime:4.7.1" level="project" />
43
-    <orderEntry type="library" scope="TEST" name="Maven: com.github.jknack:handlebars-helpers:4.0.7" level="project" />
15
+    <orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-databind:2.8.6" level="project" />
16
+    <orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-annotations:2.8.0" level="project" />
17
+    <orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-core:2.8.6" level="project" />
44 18
     <orderEntry type="library" name="Maven: org.apache.httpcomponents:httpclient:4.5.6" level="project" />
45 19
     <orderEntry type="library" name="Maven: org.apache.httpcomponents:httpcore:4.4.10" level="project" />
46 20
     <orderEntry type="library" name="Maven: commons-logging:commons-logging:1.2" level="project" />
47 21
     <orderEntry type="library" name="Maven: commons-codec:commons-codec:1.10" level="project" />
48
-    <orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-databind:2.9.7" level="project" />
49
-    <orderEntry type="library" name="Maven: com.fasterxml.jackson.datatype:jackson-datatype-json-org:2.9.7" level="project" />
50
-    <orderEntry type="library" name="Maven: org.json:json:20171018" level="project" />
22
+    <orderEntry type="library" name="Maven: org.json:json:20180813" level="project" />
23
+    <orderEntry type="library" name="Maven: com.fasterxml.jackson.datatype:jackson-datatype-json-org:2.9.0" level="project" />
24
+    <orderEntry type="library" name="Maven: org.apache.geronimo.bundles:json:20090211_1" level="project" />
51 25
   </component>
52 26
 </module>

+ 6
- 41
Client/pom.xml Bestand weergeven

@@ -2,13 +2,14 @@
2 2
 <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3 3
          xmlns="http://maven.apache.org/POM/4.0.0"
4 4
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5
-
5
+    <parent>
6
+        <artifactId>YouAreEll</artifactId>
7
+        <groupId>com.zipcoder.ZipChat</groupId>
8
+        <version>1.0-SNAPSHOT</version>
9
+    </parent>
6 10
     <modelVersion>4.0.0</modelVersion>
7 11
 
8
-    <groupId>com.zipcoder.YouAreEll</groupId>
9
-    <artifactId>shellutilities.YouAreEll</artifactId>
10
-    <packaging>pom</packaging>
11
-    <version>1.0-SNAPSHOT</version>
12
+    <artifactId>Client</artifactId>
12 13
     <build>
13 14
         <plugins>
14 15
             <plugin>
@@ -28,42 +29,6 @@
28 29
             <version>4.12</version>
29 30
             <scope>test</scope>
30 31
         </dependency>
31
-        <dependency>
32
-            <groupId>com.github.tomakehurst</groupId>
33
-            <artifactId>wiremock</artifactId>
34
-            <version>2.19.0</version>
35
-            <scope>test</scope>
36
-        </dependency>
37
-        <dependency>
38
-            <groupId>com.github.tomakehurst</groupId>
39
-            <artifactId>wiremock</artifactId>
40
-            <version>2.19.0</version>
41
-            <scope>test</scope>
42
-        </dependency>
43
-        <dependency>
44
-            <groupId>com.github.tomakehurst</groupId>
45
-            <artifactId>wiremock</artifactId>
46
-            <version>2.19.0</version>
47
-            <scope>test</scope>
48
-        </dependency>
49
-        <dependency>
50
-            <groupId>org.apache.httpcomponents</groupId>
51
-            <artifactId>httpclient</artifactId>
52
-            <version>4.5.6</version>
53
-            <scope>compile</scope>
54
-        </dependency>
55
-        <dependency>
56
-            <groupId>com.fasterxml.jackson.core</groupId>
57
-            <artifactId>jackson-databind</artifactId>
58
-            <version>2.9.7</version>
59
-            <scope>compile</scope>
60
-        </dependency>
61
-        <dependency>
62
-            <groupId>com.fasterxml.jackson.datatype</groupId>
63
-            <artifactId>jackson-datatype-json-org</artifactId>
64
-            <version>2.9.7</version>
65
-            <scope>compile</scope>
66
-        </dependency>
67 32
     </dependencies>
68 33
 
69 34
 

+ 0
- 1
Client/src/main/resources/config.properties Bestand weergeven

@@ -1 +0,0 @@
1
-API_URL=http://zipcode.rocks:8085

+ 0
- 20
Client/src/test/messagecontrollertesting/MessageControllerTest.java Bestand weergeven

@@ -1,27 +1,7 @@
1 1
 package messagecontrollertesting;
2 2
 
3
-import com.github.tomakehurst.wiremock.client.WireMock;
4
-import com.github.tomakehurst.wiremock.junit.WireMockRule;
5
-import org.junit.Before;
6
-import org.junit.Test;
7
-import shellutilities.YouAreEll;
8
-
9
-import java.io.IOException;
10
-
11 3
 import static org.junit.Assert.*;
12 4
 
13 5
 public class MessageControllerTest {
14 6
 
15
-    @Before
16
-    public void setup(){
17
-        WireMock.configureFor("http://zipcode.rocks", 8085);
18
-        WireMockRule wiremock = new WireMockRule();
19
-    }
20
-
21
-    @Test
22
-    public void test() throws IOException {
23
-        YouAreEll youAreEll = new YouAreEll();
24
-        String message = youAreEll.get_messages();
25
-        System.out.println(message);
26
-    }
27 7
 }