This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Test | |
| public void testOnCompletedOnWorkflowRun() throws Exception { | |
| DatadogClientStub client = new DatadogClientStub(); | |
| DatadogBuildListener datadogBuildListener = new DatadogBuildListenerTestWrapper(); | |
| ((DatadogBuildListenerTestWrapper)datadogBuildListener).setDatadogClient(client); | |
| EnvVars envVars = new EnvVars(); | |
| envVars.put("HOSTNAME", "test-hostname-2"); | |
| envVars.put("NODE_NAME", "test-node"); | |
| envVars.put("BUILD_URL", "http://build_url.com"); |