Search in sources :

Example 46 with Ticket

use of org.opennms.api.integration.ticketing.Ticket in project opennms by OpenNMS.

the class QuickBaseTicketerPluginTest method testGet.

public void testGet() {
    //This may need to be changed ;-)
    String ticketId = "19";
    Ticket newTicket = m_ticketer.get(ticketId);
    assertNotNull(newTicket);
    assertEquals(ticketId, newTicket.getId());
    assertTrue(newTicket.getSummary().startsWith("A Ticket at"));
//TODO: Implement this later when we need 2 way retrieval of comments/details
//assertEquals("These are the details", newTicket.getDetails());
}
Also used : Ticket(org.opennms.api.integration.ticketing.Ticket)

Aggregations

Ticket (org.opennms.api.integration.ticketing.Ticket)46 PluginException (org.opennms.api.integration.ticketing.PluginException)15 Date (java.util.Date)9 Test (org.junit.Test)7 OnmsAlarm (org.opennms.netmgt.model.OnmsAlarm)4 MXStringType (com.ibm.maximo.MXStringType)3 Properties (java.util.Properties)3 Plugin (org.opennms.api.integration.ticketing.Plugin)3 DataRetrievalFailureException (org.springframework.dao.DataRetrievalFailureException)3 BasicIssue (com.atlassian.jira.rest.client.api.domain.BasicIssue)2 Issue (com.atlassian.jira.rest.client.api.domain.Issue)2 QuerySHSIMPINCResponseType (com.ibm.maximo.QuerySHSIMPINCResponseType)2 QuerySHSIMPINCType (com.ibm.maximo.QuerySHSIMPINCType)2 SHSIMPINCINCIDENTType (com.ibm.maximo.SHSIMPINCINCIDENTType)2 File (java.io.File)2 IOException (java.io.IOException)2 BigInteger (java.math.BigInteger)2 ArrayList (java.util.ArrayList)2 HashMap (java.util.HashMap)2 Ignore (org.junit.Ignore)2