Package org.opennms.netmgt.bsm.test
Class BsmTestUtils
- java.lang.Object
-
- org.opennms.netmgt.bsm.test.BsmTestUtils
-
public class BsmTestUtils extends java.lang.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> java.lang.String toJson(T input)
-
toXml
public static <T> java.lang.String toXml(T input)
-
createAlarmWrapper
public static AlarmWrapper createAlarmWrapper(java.lang.String uei, OnmsSeverity severity, java.lang.String reductionKey)
-
createAlarmWrapper
public static AlarmWrapper createAlarmWrapper(OnmsMonitoredService monitoredService, OnmsSeverity severity)
-
createMonitoredService
public static OnmsMonitoredService createMonitoredService(int serviceId, int nodeId, java.lang.String ipAddress, java.lang.String serviceName)
-
createDummyBusinessService
public static BusinessServiceEntity createDummyBusinessService(java.lang.String serviceName)
-
-