示例#1
0
 @Test
 public void test11TagsPrefix() throws Exception {
   // should allow listing tag by prefix
   Map result = api.tags(Cloudinary.asMap("prefix", "api_test"));
   List<String> tags = (List<String>) result.get("tags");
   assertContains("api_test_tag", tags);
   result = api.tags(Cloudinary.asMap("prefix", "api_test_no_such_tag"));
   tags = (List<String>) result.get("tags");
   assertEquals(0, tags.size());
 }
示例#2
0
 @Test
 public void test10Tags() throws Exception {
   // should allow listing tags
   Map result = api.tags(Cloudinary.emptyMap());
   List<String> tags = (List<String>) result.get("tags");
   assertContains("api_test_tag", tags);
 }