Examples of GistConnector


Examples of br.com.caelum.tubaina.gists.GistConnector

public class GistTagTest extends AbstractTagTest {

  @Test
  public void gistedCodeIsRetrievedAndUsed() throws Exception {
    GistResultRetriever retriever = new GistResultRetriever(new GistConnector(new JsonToGistResultConverter(),
        new GistRequest()));

    String options = "417835";
    @SuppressWarnings("unused")
    // code to be retrieved, we can only assert parts of it
View Full Code Here

Examples of br.com.caelum.tubaina.gists.GistConnector

        .useDelimiter("\\Z").next();

    GistRequest mockedGistRequest = mock(GistRequest.class);
    when(mockedGistRequest.get(gistId)).thenReturn(json);

    GistConnector connector = new GistConnector(new JsonToGistResultConverter(), mockedGistRequest);

    GistResultRetriever retriever = new GistResultRetriever(connector);

    GistChunk chunk = new GistChunk(options);
    String output = new GistTag(new SimpleIndentator(4), retriever).parse(chunk);
View Full Code Here
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.