Package com.denimgroup.threadfix.service.defects.mock

Examples of com.denimgroup.threadfix.service.defects.mock.RestUtilsMock


        type.setName(DefectTrackerType.JIRA);

        AbstractDefectTracker tracker = DefectTrackerFactory.getTracker(type);

        ((JiraDefectTracker) tracker).restUtils = new RestUtilsMock();

        return tracker;
    }
View Full Code Here


    }

    @Test
    public void testUserParsing() {
        UserRetriever retriever = new UserRetriever(JIRA_USERNAME, JIRA_PASSWORD,
                "NCT", JIRA_BASE_URL + "/rest/api/2/", new RestUtilsMock());

        Map<String, String> userMap = retriever.getUserMap();

        assertTrue("User map was null.", userMap != null);
        assertTrue("User map should have contained one item, contained " + userMap.size(), userMap.size() == 1);
View Full Code Here

TOP

Related Classes of com.denimgroup.threadfix.service.defects.mock.RestUtilsMock

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.