Skip to content

Commit

Permalink
fix the last test for setting categories in a post.
Browse files Browse the repository at this point in the history
  • Loading branch information
canbican committed Sep 4, 2015
1 parent 717651c commit a3a75c8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/net/bican/wordpress/test/PostTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -195,11 +195,8 @@ public void testSetCategory() throws Exception {
}
}
}
System.err.println(termId);
Term term1 = WP.getTerm("category", termId);
Term term2 = WP.getTerm("category", termId2);
System.err.println(term1);
System.err.println(term2);
Post pp = new Post();
pp.setPost_title("test");
pp.setPost_excerpt("test test");
Expand All @@ -212,5 +209,7 @@ public void testSetCategory() throws Exception {
assertEquals(termId, pp.getTerms().get(0).getTerm_id());
assertEquals(termId2, pp.getTerms().get(1).getTerm_id());
WP.deletePost(pId);
WP.deleteTerm("category", termId);
WP.deleteTerm("category", termId2);
}
}

0 comments on commit a3a75c8

Please sign in to comment.