Examples of wasSuccessful()


Examples of com.atlassian.jgitflow.core.ReleaseMergeResult.wasSuccessful()

                .setMessage(ReleaseUtil.interpolate(ctx.getTagMessage(), rootProject.getModel()))
                .setAllowUntracked(ctx.isAllowUntracked())
                .setScmMessagePrefix(ctx.getScmCommentPrefix())
                .call();

            if(!mergeResult.wasSuccessful())
            {
                if(mergeResult.masterHasProblems())
                {
                    getLogger().error("Error merging into " + flow.getMasterBranchName() + ":");
                    getLogger().error(mergeResult.getMasterResult().toString());
View Full Code Here

Examples of com.mes.sdk.reporting.Reporting.wasSuccessful()

            .setResponseFormat(ResponseFormat.XML1);

    try {
      ReportingResponse response = reporting.run(request);
      LOG.log(Level.INFO, response.toString());
      if(reporting.wasSuccessful()) {
        // Store or parse response.getRawResponse()
      }
    } catch (MesRuntimeException e) {
      e.printStackTrace();
    }
View Full Code Here

Examples of com.rallydev.rest.response.CreateResponse.wasSuccessful()

        doReturn(new Gson().toJson(response)).when(api.client).doPost(request.toUrl(), request.getBody());
        CreateResponse createResponse = api.create(request);

        verify(api.client).doPost(request.toUrl(), request.getBody());
        Assert.assertTrue(createResponse.wasSuccessful());
        JsonObject createdObj = createResponse.getObject();
        assertEquals(createdObj.get("_ref").getAsString(), "/defect/1234");
    }

    public void shouldUpdate() throws Exception {
View Full Code Here

Examples of com.rallydev.rest.response.DeleteResponse.wasSuccessful()

        DeleteRequest request = new DeleteRequest("/defect/1234");
        doReturn(new Gson().toJson(response)).when(api.client).doDelete(request.toUrl());
        DeleteResponse deleteResponse = api.delete(request);

        verify(api.client).doDelete(request.toUrl());
        Assert.assertTrue(deleteResponse.wasSuccessful());
    }

    public void shouldGet() throws Exception {
        JsonObject response = new JsonObject();
        JsonObject defect = new JsonObject();
View Full Code Here

Examples of com.rallydev.rest.response.GetResponse.wasSuccessful()

        GetRequest request = new GetRequest("/defect/1234");
        doReturn(new Gson().toJson(response)).when(api.client).doGet(request.toUrl());
        GetResponse getResponse = api.get(request);

        verify(api.client).doGet(request.toUrl());
        Assert.assertTrue(getResponse.wasSuccessful());
        JsonObject obj = getResponse.getObject();
        assertEquals(obj.get("_ref").getAsString(), "/defect/1234");
    }

    public void shouldQueryOnePage() throws Exception {
View Full Code Here

Examples of com.rallydev.rest.response.QueryResponse.wasSuccessful()

        doReturn(new Gson().toJson(response)).when(api.client).doGet(request.toUrl());
        QueryResponse queryResponse = api.query(request);

        verify(api.client, times(1)).doGet(anyString());
        verify(api.client).doGet(request.toUrl());
        Assert.assertTrue(queryResponse.wasSuccessful());
        assertEquals(queryResponse.getTotalResultCount(), 5);
    }

    public void shouldQueryAllPages() throws Exception {
        JsonObject response = buildQueryResponse(5);
View Full Code Here

Examples of com.rallydev.rest.response.UpdateResponse.wasSuccessful()

        UpdateRequest request = new UpdateRequest("/defect/1234", updatedDefect);
        doReturn(new Gson().toJson(response)).when(api.client).doPost(request.toUrl(), request.getBody());
        UpdateResponse updateResponse = api.update(request);

        verify(api.client).doPost(request.toUrl(), request.getBody());
        Assert.assertTrue(updateResponse.wasSuccessful());
        JsonObject obj = updateResponse.getObject();
        assertEquals(obj.get("_ref").getAsString(), "/defect/1234");
    }

    public void shouldDelete() throws Exception {
View Full Code Here

Examples of junit.framework.TestResult.wasSuccessful()

      {
         args = runner.preProcessCommandLine(args);

      TestResult r = runner.start(args);

      if (!r.wasSuccessful())
         {
        System.exit(FAILURE_EXIT);
         }
      System.exit(SUCCESS_EXIT);
    }
View Full Code Here

Examples of junit.framework.TestResult.wasSuccessful()

        
         resultFormatter.endTestSuite(dummyJUnit);

         writer.close();

         return result.wasSuccessful();
      }
      catch (Exception e)
      {
         if (isDebug)
            e.printStackTrace();
View Full Code Here

Examples of junit.framework.TestResult.wasSuccessful()

        // } catch (java.lang.InternalError e1){
        // System.out.println("Error with class "+n+" "+e1);
        // }
        //System.out.println("------------");
        // --
        System.exit(result.wasSuccessful() ? 0 : 1); // this is needed because the test may start the AWT EventQueue thread which is not a daemon.
    }

    /**
     * An overridable method that initializes the logging for the unit test run,
     * using the properties file passed in as the second argument.
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.