package edu.scripps.genewiki.sync;
import static org.junit.Assert.*;
import java.io.IOException;
import org.junit.Test;
import com.google.common.io.Files;
import edu.scripps.mwsync.Wiki;
public class TestBugs {
@Test
public void testNoAnnotationsBug() throws IOException {
Wiki w = new Wiki("genewikiplus.org", "");
Wiki mock = new MockWiki("genewikiplus.org", "");
mock.setUsingCompressedRequests(false);
w.setUsingCompressedRequests(false);
String dmt1 = w.getPageText("DMT1");
GeneWikiEditor e = new GeneWikiEditor("/etc/gwsync/", "10058c23-e837-40e8-8e49-9bd52f94c283", "file:/etc/gwsync/doid.owl");
String result = GeneWikiEditor.appendDetachedAnnotations(dmt1, mock);
System.out.println(result);
assertTrue(result.contains("{{CAnnotationsStart}}"));
}
}