Examples of StringSink


Examples of com.pogofish.jadt.sink.StringSink

     */
    @Test
    public void testNoArgToString() {
        final Constructor constructor = new Constructor(NO_COMMENTS, "Whatever", Util.<Arg>list());
       
        final StringSink sink = new StringSink("test");
        try {
           
            emitter.emitToString(sink, "    ", constructor);
        } finally {
            sink.close();           
        }
        assertEquals(NO_ARG_TO_STRING, sink.result());        
    }
View Full Code Here

Examples of com.pogofish.jadt.sink.StringSink

    public void testOneArgToString() {
        final Constructor constructor = new Constructor(NO_COMMENTS, "Foo", list(
                new Arg(Util.<ArgModifier>list(), _Ref(_ClassType("Integer", Util.<RefType>list())), "um")
        ));
       
        final StringSink sink = new StringSink("test");
        try {
           
            emitter.emitToString(sink, "    ", constructor);
        } finally {
            sink.close();           
        }
        assertEquals(ONE_ARG_TO_STRING, sink.result());        
    }
View Full Code Here

Examples of net.sf.kpex.prolog.StringSink

  }

  @Override
  public int exec(Prog p)
  {
    return putArg(0, new StringSink(p), p);
  }
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.