Package it.stefanobertini.zebra

Source Code of it.stefanobertini.zebra.FakeClass

package it.stefanobertini.zebra;

import static org.junit.Assert.assertEquals;
import it.stefanobertini.zebra.AbstractCommand;
import it.stefanobertini.zebra.FormatUtils;

import org.junit.Test;

public class FakeTest {

    @Test
    public void test1() {
  class FakeClass extends AbstractCommand {

      @Override
      public void validate() {
      }

      @Override
      protected String getCommand() {
    return null;
      }

      @Override
      protected void getCommandLineInternal() {
    appendText(null);
      }
  }

  FakeClass fakeClass = new FakeClass();
  String result = new String(fakeClass.getCommandByteArray());

  assertEquals("", result);
    }

    @Test
    public void test2() {
  new FormatUtils();
    }
}
TOP

Related Classes of it.stefanobertini.zebra.FakeClass

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.