@Test public void testDataDSL() { Date date=new Date(); Name<String> name = NamingScheme.getDefault().name("name"); DataSet initialData = getInitialData(TEMPLATE_ID,name.id(),false,date); DataSetHelper helper=DataSetUtils.newHelper(initialData); DateTime firstValue= helper. managedIndividual(name,TEMPLATE_ID). property(READ_ONLY_PROPERTY). firstValue(DateTime.class); assertThat(firstValue,notNullValue()); assertThat(TimeUtils.newInstance().from(firstValue).toDate(),equalTo(date)); }
private DataDSL() { }
DataDSL { private DataDSL() { } }
DataDSL { private DataDSL() { } private  DataDSL(); }
DataDSL { private DataDSL() { } private  DataDSL(); static DataSetBuilder dataSet(); static DataSetBuilder dataSet(Name<T> name); }
DataDSL { private DataDSL() { } private  DataDSL(); static DataSetBuilder dataSet(); static DataSetBuilder dataSet(Name<T> name);  }