@@ -23,44 +23,44 @@ public class WxCpTagAPITest {
2323 protected String tagId ;
2424
2525 public void testTagCreate () throws Exception {
26- tagId = wxService .tagCreate ("测试标签4" );
27- System .out .println (tagId );
26+ this . tagId = this . wxService .tagCreate ("测试标签4" );
27+ System .out .println (this . tagId );
2828 }
2929
3030 @ Test (dependsOnMethods = "testTagCreate" )
3131 public void testTagUpdate () throws Exception {
32- wxService .tagUpdate (tagId , "测试标签-改名" );
32+ this . wxService .tagUpdate (this . tagId , "测试标签-改名" );
3333 }
3434
3535 @ Test (dependsOnMethods = "testTagUpdate" )
3636 public void testTagGet () throws Exception {
37- List <WxCpTag > tags = wxService .tagGet ();
37+ List <WxCpTag > tags = this . wxService .tagGet ();
3838 Assert .assertNotEquals (tags .size (), 0 );
3939 }
4040
4141 @ Test (dependsOnMethods = "testTagGet" )
4242 public void testTagAddUsers () throws Exception {
43- List <String > userIds = new ArrayList <String >();
44- userIds .add (((ApiTestModule .WxXmlCpInMemoryConfigStorage ) configStorage ).getUserId ());
45- wxService .tagAddUsers (tagId , userIds , null );
43+ List <String > userIds = new ArrayList <>();
44+ userIds .add (((ApiTestModule .WxXmlCpInMemoryConfigStorage ) this . configStorage ).getUserId ());
45+ this . wxService .tagAddUsers (this . tagId , userIds , null );
4646 }
4747
4848 @ Test (dependsOnMethods = "testTagAddUsers" )
4949 public void testTagGetUsers () throws Exception {
50- List <WxCpUser > users = wxService .tagGetUsers (tagId );
50+ List <WxCpUser > users = this . wxService .tagGetUsers (this . tagId );
5151 Assert .assertNotEquals (users .size (), 0 );
5252 }
5353
5454 @ Test (dependsOnMethods = "testTagGetUsers" )
5555 public void testTagRemoveUsers () throws Exception {
56- List <String > userIds = new ArrayList <String >();
57- userIds .add (((ApiTestModule .WxXmlCpInMemoryConfigStorage ) configStorage ).getUserId ());
58- wxService .tagRemoveUsers (tagId , userIds );
56+ List <String > userIds = new ArrayList <>();
57+ userIds .add (((ApiTestModule .WxXmlCpInMemoryConfigStorage ) this . configStorage ).getUserId ());
58+ this . wxService .tagRemoveUsers (this . tagId , userIds );
5959 }
6060
6161 @ Test (dependsOnMethods = "testTagRemoveUsers" )
6262 public void testTagDelete () throws Exception {
63- wxService .tagDelete (tagId );
63+ this . wxService .tagDelete (this . tagId );
6464 }
6565
6666}
0 commit comments