Package com.jdkcn.myblog.domain

Examples of com.jdkcn.myblog.domain.Tag


    tagService = injector.getInstance(TagService.class);
  }
 
  @Test
  public void testCreateOrUpdate() throws Exception {
    Tag tag = new Tag();
    tag.setName("Java");
    assertNull(tag.getId());
    String tagId = tagService.saveOrUpdate(tag).getId();
    assertNotNull(tagId);
   
    Tag savedTag = tagService.get(tagId);
   
    assertEquals("Java", savedTag.getName());
  }
View Full Code Here

TOP

Related Classes of com.jdkcn.myblog.domain.Tag

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.