Skip to content

Commit 8c76060

Browse files
testcase refactored
1 parent e53f514 commit 8c76060

File tree

4 files changed

+137
-92
lines changed

4 files changed

+137
-92
lines changed

.idea/compiler.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/encodings.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

contentstack-java.iml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
<orderEntry type="sourceFolder" forTests="false" />
1414
<orderEntry type="library" name="org.json:json:20131018" level="project" />
1515
<orderEntry type="library" name="junit:junit:4.12" level="project" />
16-
<orderEntry type="library" scope="PROVIDED" name="Maven: junit:junit:4.12" level="project" />
17-
<orderEntry type="library" scope="PROVIDED" name="Maven: org.hamcrest:hamcrest-core:1.3" level="project" />
16+
<orderEntry type="library" scope="TEST" name="Maven: junit:junit:4.12" level="project" />
17+
<orderEntry type="library" scope="TEST" name="Maven: org.hamcrest:hamcrest-core:1.3" level="project" />
1818
<orderEntry type="library" name="Maven: org.json:json:20131018" level="project" />
1919
</component>
2020
</module>

pom.xml

Lines changed: 128 additions & 89 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
44
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
55

6+
67
<modelVersion>4.0.0</modelVersion>
78
<groupId>com.contentstack.sdk</groupId>
89
<artifactId>java</artifactId>
@@ -14,82 +15,6 @@
1415
<description>Java SDK for Contentstack Content Delivery API, Contentstack is a headless CMS with an API-first approach</description>
1516
<url>http://www.contentstack.com/</url>
1617

17-
<build>
18-
<plugins>
19-
20-
<!--'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing.-->
21-
<plugin>
22-
<groupId>org.apache.maven.plugins</groupId>
23-
<artifactId>maven-compiler-plugin</artifactId>
24-
<version>2.3.2</version>
25-
<configuration>
26-
<source>8</source>
27-
<target>8</target>
28-
</configuration>
29-
</plugin>
30-
31-
<plugin>
32-
<groupId>org.sonatype.plugins</groupId>
33-
<artifactId>nexus-staging-maven-plugin</artifactId>
34-
<version>1.6.7</version>
35-
<extensions>true</extensions>
36-
<configuration>
37-
<serverId>ossrh</serverId>
38-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
39-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
40-
</configuration>
41-
</plugin>
42-
43-
44-
<plugin>
45-
<groupId>org.apache.maven.plugins</groupId>
46-
<artifactId>maven-source-plugin</artifactId>
47-
<version>2.2.1</version>
48-
<executions>
49-
<execution>
50-
<id>attach-sources</id>
51-
<goals>
52-
<goal>jar-no-fork</goal>
53-
</goals>
54-
</execution>
55-
</executions>
56-
</plugin>
57-
58-
59-
<plugin>
60-
<groupId>org.apache.maven.plugins</groupId>
61-
<artifactId>maven-javadoc-plugin</artifactId>
62-
<version>2.9.1</version>
63-
<executions>
64-
<execution>
65-
<id>attach-javadocs</id>
66-
<goals>
67-
<goal>jar</goal>
68-
</goals>
69-
</execution>
70-
</executions>
71-
</plugin>
72-
73-
74-
<plugin>
75-
<groupId>org.apache.maven.plugins</groupId>
76-
<artifactId>maven-gpg-plugin</artifactId>
77-
<version>1.5</version>
78-
<executions>
79-
<execution>
80-
<id>sign-artifacts</id>
81-
<phase>verify</phase>
82-
<goals>
83-
<goal>sign</goal>
84-
</goals>
85-
</execution>
86-
</executions>
87-
</plugin>
88-
89-
90-
</plugins>
91-
</build>
92-
9318

9419
<licenses>
9520
<license>
@@ -99,6 +24,22 @@
9924
</licenses>
10025

10126

27+
<scm>
28+
<connection>scm:git:git://github.com/contentstack/contentstack-java.git</connection>
29+
<developerConnection>scm:git:ssh://github.com/contentstack/contentstack-java.git</developerConnection>
30+
<url>https://github.com/contentstack/contentstack-java</url>
31+
</scm>
32+
33+
<developers>
34+
<developer>
35+
<name>contentstack-java</name>
36+
<email>mobile@contentstack.com</email>
37+
<organization>contentstack</organization>
38+
<organizationUrl>https://www.contentstack.com/</organizationUrl>
39+
</developer>
40+
</developers>
41+
42+
10243
<distributionManagement>
10344
<snapshotRepository>
10445
<id>ossrh</id>
@@ -111,21 +52,116 @@
11152
</distributionManagement>
11253

11354

114-
<developers>
115-
<developer>
55+
<repositories>
56+
<repository>
57+
<id>contentstack</id>
58+
<name>contentstack</name>
59+
<url>http://www.contentstack.com</url>
60+
</repository>
61+
<repository>
62+
<id>contentstack-java</id>
11663
<name>contentstack-java</name>
117-
<email>mobile@contentstack.com</email>
118-
<organization>contentstack</organization>
119-
<organizationUrl>https://www.contentstack.com/</organizationUrl>
120-
</developer>
121-
</developers>
64+
<url>https://github.com/contentstack/contentstack-java</url>
65+
</repository>
66+
</repositories>
12267

12368

124-
<scm>
125-
<connection>scm:git:git://github.com/contentstack/contentstack-java.git</connection>
126-
<developerConnection>scm:git:ssh://github.com/contentstack/contentstack-java.git</developerConnection>
127-
<url>https://github.com/contentstack/contentstack-java</url>
128-
</scm>
69+
<properties>
70+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
71+
</properties>
72+
73+
74+
75+
<build>
76+
<pluginManagement>
77+
<plugins>
78+
79+
<plugin>
80+
<groupId>org.apache.maven.plugins</groupId>
81+
<artifactId>maven-compiler-plugin</artifactId>
82+
<configuration>
83+
<source>1.8</source>
84+
<target>1.8</target>
85+
</configuration>
86+
</plugin>
87+
88+
<plugin>
89+
<groupId>org.apache.maven.plugins</groupId>
90+
<artifactId>maven-source-plugin</artifactId>
91+
<version>2.2.1</version>
92+
<executions>
93+
<execution>
94+
<id>attach-sources</id>
95+
<goals>
96+
<goal>jar-no-fork</goal>
97+
</goals>
98+
</execution>
99+
</executions>
100+
</plugin>
101+
102+
103+
<plugin>
104+
<groupId>org.apache.maven.plugins</groupId>
105+
<artifactId>maven-javadoc-plugin</artifactId>
106+
<version>2.9.1</version>
107+
<executions>
108+
<execution>
109+
<id>attach-javadocs</id>
110+
<goals>
111+
<goal>jar</goal>
112+
</goals>
113+
</execution>
114+
</executions>
115+
</plugin>
116+
117+
118+
<plugin>
119+
<groupId>org.apache.maven.plugins</groupId>
120+
<artifactId>maven-gpg-plugin</artifactId>
121+
<version>1.5</version>
122+
<executions>
123+
<execution>
124+
<id>sign-artifacts</id>
125+
<phase>verify</phase>
126+
<goals>
127+
<goal>sign</goal>
128+
</goals>
129+
</execution>
130+
</executions>
131+
</plugin>
132+
133+
134+
135+
<plugin>
136+
<groupId>org.apache.maven.plugins</groupId>
137+
<artifactId>maven-release-plugin</artifactId>
138+
<version>2.5.3</version>
139+
<configuration>
140+
<autoVersionSubmodules>true</autoVersionSubmodules>
141+
<useReleaseProfile>false</useReleaseProfile>
142+
<releaseProfiles>release</releaseProfiles>
143+
<goals>deploy</goals>
144+
</configuration>
145+
</plugin>
146+
147+
148+
149+
<plugin>
150+
<groupId>org.sonatype.plugins</groupId>
151+
<artifactId>nexus-staging-maven-plugin</artifactId>
152+
<version>1.6.7</version>
153+
<extensions>true</extensions>
154+
<configuration>
155+
<serverId>ossrh</serverId>
156+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
157+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
158+
</configuration>
159+
</plugin>
160+
161+
162+
</plugins>
163+
</pluginManagement>
164+
</build>
129165

130166

131167
<dependencies>
@@ -134,7 +170,7 @@
134170
<groupId>junit</groupId>
135171
<artifactId>junit</artifactId>
136172
<version>4.12</version>
137-
<scope>provided</scope>
173+
<scope>test</scope>
138174
</dependency>
139175

140176
<dependency>
@@ -146,4 +182,7 @@
146182
</dependencies>
147183

148184

185+
186+
187+
149188
</project>

0 commit comments

Comments
 (0)