use of org.folio.rest.persist.Criteria.UpdateSection in project raml-module-builder by folio-org.
the class PostgresClientIT method updateSectionX.
@Test
public void updateSectionX(TestContext context) {
UpdateSection updateSection = new UpdateSection();
updateSection.addField("key").setValue("x");
createFoo(context).update(FOO, updateSection, (Criterion) null, false, context.asyncAssertSuccess());
}
use of org.folio.rest.persist.Criteria.UpdateSection in project raml-module-builder by folio-org.
the class UpdateSectionTest method getValueForNull.
@Test
public void getValueForNull() {
UpdateSection updateSection = new UpdateSection();
updateSection.setValue(null);
assertNull(updateSection.getValue());
}
use of org.folio.rest.persist.Criteria.UpdateSection in project raml-module-builder by folio-org.
the class UpdateSectionTest method getValueForString.
@Test
@Parameters
public void getValueForString(String in, String json) {
UpdateSection updateSection = new UpdateSection();
updateSection.setValue(in);
assertEquals(json, updateSection.getValue());
}
use of org.folio.rest.persist.Criteria.UpdateSection in project raml-module-builder by folio-org.
the class UpdateSectionTest method getValueForDouble.
@Test
public void getValueForDouble() {
UpdateSection updateSection = new UpdateSection();
updateSection.setValue(1.234);
assertEquals("1.234", updateSection.getValue());
}
Aggregations