Search in sources :

Example 6 with OemData

use of com.intel.mtwilson.datatypes.OemData in project OpenAttestation by OpenAttestation.

the class OemBOTest method testUpdateOem.

@Test
public void testUpdateOem() {
    TblOem tblOem = new TblOem(OEM_ID1);
    doReturn(tblOem).when(tblOemJpaController).findTblOemByName(anyString());
    OemData oemData = new OemData("DELL", "");
    String result = oemBO.updateOem(oemData);
    assertEquals("true", result);
}
Also used : TblOem(com.intel.mtwilson.as.data.TblOem) OemData(com.intel.mtwilson.datatypes.OemData) Matchers.anyString(org.mockito.Matchers.anyString) Test(org.junit.Test)

Example 7 with OemData

use of com.intel.mtwilson.datatypes.OemData in project OpenAttestation by OpenAttestation.

the class OemBOTest method testCreateOem.

@Test
public void testCreateOem() {
    TblOem tblOem = null;
    doReturn(tblOem).when(tblOemJpaController).findTblOemByName(anyString());
    OemData oemData = new OemData("DELL", "");
    String result = oemBO.createOem(oemData);
    assertEquals("true", result);
}
Also used : TblOem(com.intel.mtwilson.as.data.TblOem) OemData(com.intel.mtwilson.datatypes.OemData) Matchers.anyString(org.mockito.Matchers.anyString) Test(org.junit.Test)

Aggregations

OemData (com.intel.mtwilson.datatypes.OemData)7 TblOem (com.intel.mtwilson.as.data.TblOem)4 ArrayList (java.util.ArrayList)3 Test (org.junit.Test)3 WLMPortalException (com.intel.mountwilson.common.WLMPortalException)2 Matchers.anyString (org.mockito.Matchers.anyString)2 ASException (com.intel.mountwilson.as.common.ASException)1 OEMDataVO (com.intel.mountwilson.datamodel.OEMDataVO)1