/*
 * Copyright 2000-2012 JetBrains s.r.o.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.intellij.tasks.integration;

import com.intellij.tasks.Task;
import com.intellij.tasks.TaskManagerTestCase;
import com.intellij.tasks.trac.TracRepository;

/**
 * @author Dmitry Avdeev
 *         Date: 1/25/12
 */
public abstract class TracIntegrationTest extends TaskManagerTestCase {

  public void testTracEncoding() throws Exception {

    TracRepository repository = new TracRepository();
    repository.setUseHttpAuthentication(true);

    Task task = repository.findTask("5358");
    assertNotNull(task);
    assertEquals("Artikel k\u00f6nnen nicht in den Warenkorb gelegt werden", task.getSummary());
  }
}

@@ -831,17 +831,8 @@
 lic 
-abstract 
 clas
@@ -991,16 +991,233 @@
 tory();%0A
+    repository.setUrl(%22http://trackers-tests.labs.intellij.net:8012/trac-12-p-1/rpc%22);%0A    repository.setPassword(%22buildtest%22);%0A    repository.setUsername(%22buildtest%22);%0A    repository.setUseHttpAuthentication(true);%0A%0A
     repo
@@ -1298,11 +1298,8 @@
 k(%225
-358
 %22);%0A

test restored