Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2010-06-25 05:07:41 +0000
committerspingel2010-06-25 05:07:41 +0000
commitddc69dcb605152b74e6df5bfbd7f8abf56cc6bbd (patch)
treee75044ec9d0e1637e89461de88a67b26e94bfde4 /org.eclipse.mylyn.trac.core
parent37274468f56e8cd701c0091c282987f926a552a4 (diff)
downloadorg.eclipse.mylyn.tasks-ddc69dcb605152b74e6df5bfbd7f8abf56cc6bbd.tar.gz
org.eclipse.mylyn.tasks-ddc69dcb605152b74e6df5bfbd7f8abf56cc6bbd.tar.xz
org.eclipse.mylyn.tasks-ddc69dcb605152b74e6df5bfbd7f8abf56cc6bbd.zip
bug 317903: tests log too much output
https://bugs.eclipse.org/bugs/show_bug.cgi?id=317903
Diffstat (limited to 'org.eclipse.mylyn.trac.core')
-rw-r--r--org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracRepositoryConnector.java17
-rw-r--r--org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/client/TracWebClient.java7
-rw-r--r--org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/client/TracXmlRpcClient.java6
3 files changed, 14 insertions, 16 deletions
diff --git a/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracRepositoryConnector.java b/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracRepositoryConnector.java
index 52c1565ef..179793777 100644
--- a/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracRepositoryConnector.java
+++ b/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracRepositoryConnector.java
@@ -28,14 +28,13 @@ import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.OperationCanceledException;
import org.eclipse.core.runtime.Status;
-import org.eclipse.mylyn.commons.core.CoreUtil;
import org.eclipse.mylyn.commons.net.AuthenticationCredentials;
import org.eclipse.mylyn.commons.net.AuthenticationType;
import org.eclipse.mylyn.commons.net.Policy;
import org.eclipse.mylyn.internal.trac.core.client.AbstractWikiHandler;
import org.eclipse.mylyn.internal.trac.core.client.ITracClient;
-import org.eclipse.mylyn.internal.trac.core.client.ITracWikiClient;
import org.eclipse.mylyn.internal.trac.core.client.ITracClient.Version;
+import org.eclipse.mylyn.internal.trac.core.client.ITracWikiClient;
import org.eclipse.mylyn.internal.trac.core.model.TracPriority;
import org.eclipse.mylyn.internal.trac.core.model.TracSearch;
import org.eclipse.mylyn.internal.trac.core.model.TracTicket;
@@ -43,10 +42,10 @@ import org.eclipse.mylyn.internal.trac.core.util.TracUtil;
import org.eclipse.mylyn.tasks.core.AbstractRepositoryConnector;
import org.eclipse.mylyn.tasks.core.IRepositoryQuery;
import org.eclipse.mylyn.tasks.core.ITask;
+import org.eclipse.mylyn.tasks.core.ITask.PriorityLevel;
import org.eclipse.mylyn.tasks.core.RepositoryStatus;
import org.eclipse.mylyn.tasks.core.TaskRepository;
import org.eclipse.mylyn.tasks.core.TaskRepositoryLocationFactory;
-import org.eclipse.mylyn.tasks.core.ITask.PriorityLevel;
import org.eclipse.mylyn.tasks.core.data.TaskAttribute;
import org.eclipse.mylyn.tasks.core.data.TaskData;
import org.eclipse.mylyn.tasks.core.data.TaskDataCollector;
@@ -574,9 +573,9 @@ public class TracRepositoryConnector extends AbstractRepositoryConnector {
try {
ITracClient client = getClientManager().getTracClient(repository);
Set<Integer> ids = client.getChangedTickets(since, monitor);
- if (CoreUtil.TEST_MODE) {
- System.err.println(" preSynchronization(): since=" + since.getTime() + ",changed=" + ids); //$NON-NLS-1$ //$NON-NLS-2$
- }
+// if (CoreUtil.TEST_MODE) {
+// System.err.println(" preSynchronization(): since=" + since.getTime() + ",changed=" + ids); //$NON-NLS-1$ //$NON-NLS-2$
+// }
if (ids.isEmpty()) {
// repository is unchanged
session.setNeedsPerformQueries(false);
@@ -590,9 +589,9 @@ public class TracRepositoryConnector extends AbstractRepositoryConnector {
// most recent modification date
Integer id = ids.iterator().next();
Date lastChanged = client.getTicketLastChanged(id, monitor);
- if (CoreUtil.TEST_MODE) {
- System.err.println(" preSynchronization(): since=" + since.getTime() + ", lastChanged=" + lastChanged.getTime()); //$NON-NLS-1$ //$NON-NLS-2$
- }
+// if (CoreUtil.TEST_MODE) {
+// System.err.println(" preSynchronization(): since=" + since.getTime() + ", lastChanged=" + lastChanged.getTime()); //$NON-NLS-1$ //$NON-NLS-2$
+// }
if (since.equals(lastChanged)) {
// repository didn't actually change
session.setNeedsPerformQueries(false);
diff --git a/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/client/TracWebClient.java b/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/client/TracWebClient.java
index 3d661f934..5a0bc5e9a 100644
--- a/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/client/TracWebClient.java
+++ b/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/client/TracWebClient.java
@@ -40,7 +40,6 @@ import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.OperationCanceledException;
import org.eclipse.core.runtime.Status;
-import org.eclipse.mylyn.commons.core.CoreUtil;
import org.eclipse.mylyn.commons.core.StatusHandler;
import org.eclipse.mylyn.commons.net.AbstractWebLocation;
import org.eclipse.mylyn.commons.net.AuthenticationCredentials;
@@ -145,9 +144,9 @@ public class TracWebClient extends AbstractTracClient {
Credentials httpCredentials = WebUtil.getHttpClientCredentials(credentials,
WebUtil.getHost(repositoryUrl));
httpClient.getState().setCredentials(authScope, httpCredentials);
- if (CoreUtil.TEST_MODE) {
- System.err.println(" Setting credentials: " + httpCredentials); //$NON-NLS-1$
- }
+// if (CoreUtil.TEST_MODE) {
+// System.err.println(" Setting credentials: " + httpCredentials); //$NON-NLS-1$
+// }
GetMethod method = new GetMethod(WebUtil.getRequestPath(repositoryUrl + LOGIN_URL));
method.setFollowRedirects(false);
diff --git a/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/client/TracXmlRpcClient.java b/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/client/TracXmlRpcClient.java
index deb53e8b7..45e0110e5 100644
--- a/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/client/TracXmlRpcClient.java
+++ b/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/client/TracXmlRpcClient.java
@@ -330,9 +330,9 @@ public class TracXmlRpcClient extends AbstractTracClient implements ITracWikiCli
Credentials httpCredentials = WebUtil.getHttpClientCredentials(credentials,
WebUtil.getHost(location.getUrl()));
httpClient.getState().setCredentials(authScope, httpCredentials);
- if (CoreUtil.TEST_MODE) {
- System.err.println(" Setting credentials: " + httpCredentials); //$NON-NLS-1$
- }
+// if (CoreUtil.TEST_MODE) {
+// System.err.println(" Setting credentials: " + httpCredentials); //$NON-NLS-1$
+// }
httpClient.getState().setCredentials(authScope, httpCredentials);
} else {
httpClient.getState().clearCredentials();

Back to the top