Search in sources :

Example 6 with Sample

use of com.iggroup.oss.sample.domain.Sample in project RESTdoclet by IG-Group.

the class AbstractSampleServiceTest method testUpdateSample.

/**
    * Success test case for updateSample
    */
@Test
public void testUpdateSample() {
    try {
        Sample sample = service.getSampleByReference("00001");
        sample.setName("New name");
        service.updateSample(sample);
    } catch (Exception e) {
        assertTrue(false);
    }
}
Also used : Sample(com.iggroup.oss.sample.domain.Sample) Test(org.junit.Test)

Aggregations

Sample (com.iggroup.oss.sample.domain.Sample)6 Test (org.junit.Test)4 SampleReference (com.iggroup.oss.sample.domain.SampleReference)1 Profiled (org.perf4j.aop.Profiled)1