Package org.sonatype.nexus.component.services.model

Examples of org.sonatype.nexus.component.services.model.TestComponent


      }
    }
  }

  protected ComponentEnvelope<TestComponent, TestAsset> testEnvelope(int numAssets) {
    TestComponent sourceComponent = testComponent();
    Set<TestAsset> sourceAssets = Sets.newHashSet();
    for (int i = 0; i < numAssets; i++) {
      sourceAssets.add(testAsset(i + 1));
    }
    return new ComponentEnvelope<>(sourceComponent, sourceAssets);
View Full Code Here


  protected String testContent(int n) {
    return "Test Content " + n;
  }

  protected static TestComponent createTestComponent(final String id, String stringValue, boolean populateOptionalProperties) {
    TestComponent component = testComponent(stringValue, populateOptionalProperties);
    component.setId(new EntityId(id));
    return component;
  }
View Full Code Here

  protected static TestComponent testComponent() {
    return testComponent(TEST_STRING_1, false);
  }

  protected static TestComponent testComponent(String stringValue, boolean populateOptionalProperties) {
    TestComponent component = new TestComponent();
    if (populateOptionalProperties) {
      component.setBinaryProp(TEST_BINARY);
      component.setBooleanProp(TEST_BOOLEAN);
      component.setByteProp(TEST_BYTE);
      component.setDatetimeProp(TEST_DATETIME);
      component.setDoubleProp(TEST_DOUBLE);
      component.setEmbeddedListProp(TEST_EMBEDDEDLIST);
      component.setEmbeddedMapProp(TEST_EMBEDDEDMAP);
      component.setEmbeddedSetProp(TEST_EMBEDDEDSET);
      component.setFloatProp(TEST_FLOAT);
      component.setIntegerProp(TEST_INTEGER);
      component.setLongProp(TEST_LONG);
      component.setShortProp(TEST_SHORT);
      component.setUnregisteredProp(TEST_UNREGISTERED);
    }
    component.setStringProp(stringValue);
    return component;
  }
View Full Code Here

TOP

Related Classes of org.sonatype.nexus.component.services.model.TestComponent

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.