Package org.teiid.deployers

Examples of org.teiid.deployers.ExtendedPropertyMetadata.description()


  @Test
  public void testDefault() {
    ExtendedPropertyMetadata metadata = new ExtendedPropertyMetadata("x", "java.lang.String", "some-name", null);
   
    Assert.assertEquals("some-name", metadata.display());
    Assert.assertEquals(null, metadata.description());
    Assert.assertEquals(false, metadata.advanced());
    Assert.assertEquals(false, metadata.required());
    Assert.assertEquals(false, metadata.masked());
    Assert.assertEquals(true , metadata.readOnly());
  }
View Full Code Here


    allowed.add("post");
   
    ExtendedPropertyMetadata metadata = new ExtendedPropertyMetadata("x", "java.lang.String", "{$display:\"Is Immutable\",$description:\"True if the source never changes.\",$allowed:[\"get\",\"post\"], $required:\"true\",$advanced:\"true\"}", null);
   
    Assert.assertEquals("Is Immutable", metadata.display());
    Assert.assertEquals("True if the source never changes.", metadata.description());
    Assert.assertEquals(true, metadata.advanced());
    Assert.assertEquals(true, metadata.required());
    Assert.assertEquals(false, metadata.masked());
    Assert.assertEquals(true , metadata.readOnly());   
    Assert.assertEquals(allowed , Arrays.asList(metadata.allowed()));
View Full Code Here

    allowed.add("post");
   
    ExtendedPropertyMetadata metadata = new ExtendedPropertyMetadata("x", "java.lang.String","{$display:\"Is Immu:table\",$description:\"True if the, source never changes.\",$allowed:[\"get\",\"post\"], $required:\"true\",$advanced:\"true\"}", null);
   
    Assert.assertEquals("Is Immu:table", metadata.display());
    Assert.assertEquals("True if the, source never changes.", metadata.description());
    Assert.assertEquals(true, metadata.advanced());
    Assert.assertEquals(true, metadata.required());
    Assert.assertEquals(false, metadata.masked());
    Assert.assertEquals(true , metadata.readOnly());   
    Assert.assertEquals(allowed , Arrays.asList(metadata.allowed()));
View Full Code Here

    allowed.add("post");
   
    ExtendedPropertyMetadata metadata = new ExtendedPropertyMetadata("x", "java.lang.String","{$display:\"Is Immutable\",$description:\"\",$allowed:[\"get\",\"post\"], $required:\"true\",$advanced:\"true\"}", null);
   
    Assert.assertEquals("Is Immutable", metadata.display());
    Assert.assertEquals("", metadata.description());
    Assert.assertEquals(true, metadata.advanced());
    Assert.assertEquals(true, metadata.required());
    Assert.assertEquals(false, metadata.masked());
    Assert.assertEquals(true , metadata.readOnly());   
    Assert.assertEquals(allowed , Arrays.asList(metadata.allowed()));
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.