Package ch.entwine.weblounge.common.content

Examples of ch.entwine.weblounge.common.content.Tag


   * {@link ch.entwine.weblounge.common.impl.request.CacheTagImpl#CacheTagImpl(java.lang.String)}
   * .
   */
  @Test
  public void testCacheTagImplString() {
    Tag t = new CacheTagImpl(tagName);
    assertEquals(tagName, t.getName());
    assertEquals(CacheTag.ANY, t.getValue());
    try {
      new CacheTagImpl(null);
      fail("Managed to initialize tag without name");
    } catch (IllegalArgumentException e) {
      // Expected
View Full Code Here


   * {@link ch.entwine.weblounge.common.impl.request.CacheTagImpl#CacheTagImpl(java.lang.String, java.lang.Object)}
   * .
   */
  @Test
  public void testCacheTagImplStringObject() {
    Tag t = null;

    // Test null value
    t = new CacheTagImpl(tagName, null);
    assertEquals("test", t.getName());
    assertEquals(CacheTag.ANY, t.getValue());

    // Test non-null value
    t = new CacheTagImpl(tagName, tagValue);
    assertEquals("test", t.getName());
    assertEquals(tagValue, t.getValue());

    try {
      new CacheTagImpl(null, tagValue);
      fail("Managed to initialize tag without name");
    } catch (IllegalArgumentException e) {
View Full Code Here

TOP

Related Classes of ch.entwine.weblounge.common.content.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.