Community
Participate
Working Groups
/*******************************************************************************
* Copyright (c) 2004, 2007 Mylyn project committers and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*******************************************************************************/
package org.eclipse.mylyn.tasks.tests.web;
import java.io.IOException;
import java.io.Reader;
import java.io.StringReader;
import junit.framework.TestCase;
import org.eclipse.mylyn.internal.jira.ui.html.HTML2TextReader;
public class Html2TextReaderTest extends TestCase {
public void testCpuLoop() {
String text = "Spurious <?xml version=\"1.0\" encoding=\"UTF-8\"?> in generated <head> section";
Reader stringReader = new StringReader(text);
HTML2TextReader html2TextReader = new HTML2TextReader(stringReader, null);
try {
char[] chars = new char[text.length()];
int len = html2TextReader.read(chars, 0, text.length());
assertTrue(true);
} catch (IOException e) {
}
assertTrue(false);