Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Commit

Permalink
Removed commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
rduvvarapu committed Mar 27, 2017
1 parent 5f9938d commit 3ee229e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 27 deletions.
1 change: 0 additions & 1 deletion src/main/java/com/sforce/cd/apexUnit/ApexUnitRunner.java
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ public static void main(String[] args) {
}
Long end = System.currentTimeMillis();
LOG.debug("Total Time taken by ApexUnit tool in secs: " + (end - start) / 1000);
//LOG.info("Total test methods executed: " + TestStatusPollerAndResultHandler.totalTestMethodsExecuted);
if (apexReportBeans != null && apexReportBeans.length > 0) {
LOG.info("Total test methods executed: " + apexReportBeans.length);
String reportFile = "ApexUnitReport.xml";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,32 +30,6 @@ public class TestExecutor {
private static Logger LOG = LoggerFactory.getLogger(TestExecutor.class);
private static final int BATCH_SIZE = 200;

/*public ApexReportBean[] testExecutionFlow() {
ConnectionHandler connectionHandler = ConnectionHandler.getConnectionHandlerInstance();
PartnerConnection conn = connectionHandler.getConnection();
if (conn == null) {
ApexUnitUtils.shutDownWithErrMsg("Unable to establish Connection with the org. Suspending the run..");
}
String[] testClassesAsArray = ApexClassFetcherUtils.constructTestClassesArray(conn);
if (LOG.isDebugEnabled()) {
ApexClassFetcherUtils.logTheFetchedApexClasses(testClassesAsArray);
}
if (testClassesAsArray != null && testClassesAsArray.length > 0) {
BulkConnection bulkConnection = connectionHandler.getBulkConnection();
AsyncBulkApiHandler bulkApiHandler = new AsyncBulkApiHandler();
String parentJobId = bulkApiHandler.handleBulkApiFlow(conn, bulkConnection, testClassesAsArray);
if (parentJobId != null) {
LOG.info("Parent job ID for the submission of the test classes to the Force.com platform is: "
+ parentJobId);
TestStatusPollerAndResultHandler queryPollerAndResultHandler = new TestStatusPollerAndResultHandler();
LOG.info("############################# Now executing - Apex tests.. #############################");
return queryPollerAndResultHandler.fetchResultsFromParentJobId(parentJobId, conn);
}
}
return null;
}*/

public ApexReportBean[] testExecutionFlow() {

ConnectionHandler connectionHandler = ConnectionHandler.getConnectionHandlerInstance();
Expand Down

0 comments on commit 3ee229e

Please sign in to comment.