Search in sources :

Example 6 with SampDetail

use of cl.utfsm.samplingSystemUI.core.SampDetail in project ACS by ACS-Community.

the class SampDetailTest method testEquals.

public void testEquals() throws Exception {
    SampDetail sd1 = new SampDetail("SAMP1", "brightness", 100, 1);
    SampDetail sd2 = new SampDetail("SAMP1", "brightness", 100, 1);
    SampDetail sd3 = new SampDetail("SAMP1", "brightness", 200, 1);
    assertEquals(sd1, sd2);
    assertTrue(sd1.hashCode() == sd2.hashCode());
    assertNotSame(sd2, sd3);
    assertTrue(sd1.getComponent().equals("SAMP1"));
    assertTrue(sd1.getProperty().equals("brightness"));
    assertTrue(sd1.getFrequency() == 100);
    assertTrue(sd1.getReportRate() == 1);
}
Also used : SampDetail(cl.utfsm.samplingSystemUI.core.SampDetail)

Aggregations

SampDetail (cl.utfsm.samplingSystemUI.core.SampDetail)6 SamplingManagerException (cl.utfsm.samplingSystemUI.core.SamplingManagerException)3 CouldntAccessComponentEx (alma.ACSErrTypeCommon.CouldntAccessComponentEx)2 TypeNotSupportedEx (alma.ACSErrTypeCommon.TypeNotSupportedEx)2 SampObj (alma.acssamp.SampObj)2 AcsInformationException (cl.utfsm.samplingSystemUI.core.AcsInformationException)2 SamplingManager (cl.utfsm.samplingSystemUI.core.SamplingManager)2 CouldntAccessPropertyEx (alma.ACSErrTypeCommon.CouldntAccessPropertyEx)1 AcsJContainerEx (alma.JavaContainerError.wrappers.AcsJContainerEx)1