Package edu.scripps.genewiki.sync

Source Code of edu.scripps.genewiki.sync.TestBugs

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}}"));
   
  }

}
TOP

Related Classes of edu.scripps.genewiki.sync.TestBugs

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.