package com.github.abola.crawler;

import org.junit.Assert;
import org.junit.Test;

/**
 * Created by abolalee on 2016/4/8.
 */
public class CrawlerPackInitTest {

    @Test
    public void startCrawlerInstance(){
        try {
            CrawlerPack.start();
        }catch ( Exception anyException ){
            Assert.fail( "Create CrawlerPack instance fail. Cause by: " + anyException.getMessage() );
        }
    }

    @Test
    public void loadRemoteFile(){
        try {
            CrawlerPack
                .start()
                .getFromRemote("https://raw.githubusercontent.com/abola/CrawlerPack/master/test.json");
        }catch ( Exception anyException ){
            Assert.fail( "Load remote file fail. Cause by: " + anyException.getMessage() );
        }
    }
}

@@ -421,368 +421,6 @@
  %7D%0A%0A
-    @Test%0A    public void loadRemoteFile()%7B%0A        try %7B%0A            CrawlerPack%0A                .start()%0A                .getFromRemote(%22https://raw.githubusercontent.com/abola/CrawlerPack/master/test.json%22);%0A        %7Dcatch ( Exception anyException )%7B%0A            Assert.fail( %22Load remote file fail. Cause by: %22 + anyException.getMessage() );%0A        %7D%0A    %7D%0A
 %7D%0A

add test class