Package org.opennms.netmgt.bsm.test
Class BsmTestUtils
- java.lang.Object
-
- org.opennms.netmgt.bsm.test.BsmTestUtils
-
public class BsmTestUtils extends Object
Helper class to create all kinds of objects for writing BSM tests.
-
-
Constructor Summary
Constructors Constructor Description BsmTestUtils()
-
Method Summary
-
-
-
Method Detail
-
toRequestDto
public static BusinessServiceRequestDTO toRequestDto(BusinessServiceEntity input)
-
transform
public static ReduceFunctionDTO transform(AbstractReductionFunctionEntity input)
-
toResponseDto
public static BusinessServiceResponseDTO toResponseDto(BusinessServiceEntity input)
-
toResponseDTO
public static ChildEdgeResponseDTO toResponseDTO(BusinessServiceChildEdgeEntity input)
-
toResponseDTO
public static IpServiceEdgeResponseDTO toResponseDTO(IPServiceEdgeEntity input)
-
toResponseDTO
public static ReductionKeyEdgeResponseDTO toResponseDTO(SingleReductionKeyEdgeEntity input)
-
toJson
public static <T> String toJson(T input)
-
toXml
public static <T> String toXml(T input)
-
createAlarmWrapper
public static AlarmWrapper createAlarmWrapper(String uei, OnmsSeverity severity, String reductionKey)
-
createAlarmWrapper
public static AlarmWrapper createAlarmWrapper(OnmsMonitoredService monitoredService, OnmsSeverity severity)
-
createMonitoredService
public static OnmsMonitoredService createMonitoredService(int serviceId, int nodeId, String ipAddress, String serviceName)
-
createDummyBusinessService
public static BusinessServiceEntity createDummyBusinessService(String serviceName)
-
-