Examples of Derived


Examples of com.google.common.collect.SetsTest.Derived

  }

  public void testNewTreeMultisetDerived() {
    TreeMultiset<Derived> set = TreeMultiset.create();
    assertTrue(set.isEmpty());
    set.add(new Derived("foo"), 2);
    set.add(new Derived("bar"), 3);
    JUnitAsserts.assertContentsInOrder(set,
        new Derived("bar"), new Derived("bar"), new Derived("bar"),
        new Derived("foo"), new Derived("foo"));
  }
View Full Code Here

Examples of com.google.common.collect.SetsTest.Derived

  }

  public void testTreeMultimapDerived() {
    TreeMultimap<Derived, Derived> multimap = TreeMultimap.create();
    assertEquals(ImmutableMultimap.of(), multimap);
    multimap.put(new Derived("foo"), new Derived("f"));
    multimap.put(new Derived("foo"), new Derived("o"));
    multimap.put(new Derived("foo"), new Derived("o"));
    multimap.put(new Derived("bar"), new Derived("b"));
    multimap.put(new Derived("bar"), new Derived("a"));
    multimap.put(new Derived("bar"), new Derived("r"));
    assertContentsInOrder(multimap.keySet(),
        new Derived("bar"), new Derived("foo"));
    assertContentsInOrder(multimap.values(),
        new Derived("a"), new Derived("b"), new Derived("r"),
        new Derived("f"), new Derived("o"));
    assertEquals(Ordering.natural(), multimap.keyComparator());
    assertEquals(Ordering.natural(), multimap.valueComparator());
    SerializableTester.reserializeAndAssert(multimap);
  }
View Full Code Here

Examples of com.google.common.collect.SetsTest.Derived

  }

  public void testTreeMapDerived() {
    TreeMap<Derived, Integer> map = Maps.newTreeMap();
    assertEquals(Collections.emptyMap(), map);
    map.put(new Derived("foo"), 1);
    map.put(new Derived("bar"), 2);
    ASSERT.that(map.keySet()).hasContentsInOrder(
        new Derived("bar"), new Derived("foo"));
    ASSERT.that(map.values()).hasContentsInOrder(2, 1);
    assertNull(map.comparator());
  }
View Full Code Here

Examples of com.softwarementors.extjs.djn.test.ServerMethodReturnTest.Derived

  }

 
  @DirectMethod
  public Base test_fieldInDerivedClassFieldExclusion() {
    Base result = new Derived("b", 33);
    JsonDeserializationManager mgr = JsonDeserializationManager.getManager();
    mgr.excludeFieldPaths("v2");
   
    return result;
  }
View Full Code Here

Examples of org.company.recordshop.domain.Derived

    Assert.notNull(source, "argument [source] may not be null");
    Assert.isNull(source.getId(),
        "Can not translate a dto with existing id to a new domain object. Dto: "
            + source);
    Derived target = new Derived();
    return fromDto(source, target, translated);

  }
View Full Code Here

Examples of org.company.recordshop.domain.Derived

    Derived read;

    @Before
    public void setUp() {
        Long id = dao.add(new Derived());
        flush();
        clear();
        read = dao.retrieve(id);
    }
View Full Code Here

Examples of org.company.recordshop.domain.Derived

    Assert.notNull(source, "argument [source] may not be null");
    Assert.isNull(source.getId(),
        "Can not translate a dto with existing id to a new domain object. Dto: "
            + source);
    Derived target = new Derived();
    return fromDto(source, target, translated);

  }
View Full Code Here

Examples of org.company.recordshop.domain.Derived

  /**
   * {@inheritDoc}
   */
  public DerivedDto readDerivedAsDerivedDto(Long id) {
    Derived result = testSVCDomainService.readDerived(id);
    return (result == null) ? null : derivedDtoTranslator.toDto(result);
  }
View Full Code Here

Examples of org.company.recordshop.domain.Derived

  /**
   * {@inheritDoc}
   */
  public void updateDerived(DerivedDto object) {
    Derived domainObject = testSVCDomainService.readDerived(object.getId());
    derivedDtoTranslator.fromDto(object, domainObject);
    testSVCDomainService.updateDerived(domainObject);
  }
View Full Code Here

Examples of org.company.recordshop.domain.Derived

  /**
   * {@inheritDoc}
   */
  public void deleteDerived(DerivedDto object) {
    Assert.notNull(object, "argument [object] may not be null");
    Derived existing = testSVCDomainService.readDerived(object.getId());
    testSVCDomainService.deleteDerived(existing);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.