Commit 95fa0cfb authored by Liang Ding's avatar Liang Ding

单元测试修复

parent 58fa56fb
......@@ -28,7 +28,7 @@ import org.testng.annotations.Test;
* {@link TagQueryService} test case.
*
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.0.0.1, Sep 11, 2012
* @version 1.0.0.2, Aug 3, 2015
*/
@Test(suiteName = "service")
public class TagQueryServiceTestCase extends AbstractTestCase {
......@@ -64,8 +64,9 @@ public class TagQueryServiceTestCase extends AbstractTestCase {
final List<JSONObject> tags = tagQueryService.getTags();
Assert.assertNotNull(tags);
Assert.assertEquals(tags.size(), 1);
Assert.assertEquals(tags.size(), 2);
Assert.assertEquals(tags.get(0).getString(Tag.TAG_TITLE), "B3log");
Assert.assertEquals(tags.get(1).getString(Tag.TAG_TITLE), "Solo");
}
/**
......
......@@ -21,25 +21,6 @@
<goal>license:remove</goal>
</goals>
</action>
<action>
<actionName>rebuild</actionName>
<goals>
<goal>clean</goal>
<goal>install</goal>
</goals>
<properties>
<maven.test.skip>true</maven.test.skip>
</properties>
</action>
<action>
<actionName>build</actionName>
<goals>
<goal>install</goal>
</goals>
<properties>
<maven.test.skip>true</maven.test.skip>
</properties>
</action>
<action>
<actionName>CUSTOM-checkstyle-checkstyle</actionName>
<displayName>checkstyle-checkstyle</displayName>
......@@ -47,12 +28,4 @@
<goal>checkstyle:checkstyle</goal>
</goals>
</action>
<action>
<actionName>build-with-dependencies</actionName>
<basedir>..</basedir>
<reactor>also-make</reactor>
<goals>
<goal>install</goal>
</goals>
</action>
</actions>
......@@ -28,31 +28,4 @@
<goal>gae:unpack</goal>
</goals>
</action>
<action>
<actionName>rebuild</actionName>
<goals>
<goal>clean</goal>
<goal>install</goal>
</goals>
<properties>
<maven.test.skip>true</maven.test.skip>
</properties>
</action>
<action>
<actionName>build</actionName>
<goals>
<goal>install</goal>
</goals>
<properties>
<maven.test.skip>true</maven.test.skip>
</properties>
</action>
<action>
<actionName>build-with-dependencies</actionName>
<basedir>..</basedir>
<reactor>also-make</reactor>
<goals>
<goal>install</goal>
</goals>
</action>
</actions>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment