/**
 * Copyright Alex Objelean
 */
package ro.isdc.wro.runner;

import java.io.File;

import org.junit.Before;
import org.junit.Test;

/**
 * @author Alex Objelean
 */
public class TestWro4jCommandLineRunner {
  @Before
  public void startUp() {
    System.out.println("startup");
  }
  @Test
  public void processWrongArgument() throws Exception {
    final String[] args = new String[] {"-wrongArgument"};
    Wro4jCommandLineRunner.main(args);
  }

  @Test
  public void processNoArguments() throws Exception {
    final String[] args = new String[] {};
    Wro4jCommandLineRunner.main(args);
  }

  @Test
  public void processCorrectArguments() throws Exception {
    final String[] args = new String[] {"-m"};
    Wro4jCommandLineRunner.main(args);
  }

  @Test
  public void processTestWroXml() throws Exception {
    final String wroFile = new File(getClass().getResource("").getFile()).getAbsolutePath() + "\\wro.xml";
    System.out.println(wroFile);
    final String[] args = new String("-m --wroFile " + wroFile).split(" ");
    Wro4jCommandLineRunner.main(args);
  }
}

@@ -135,16 +135,75 @@
 t.Test;%0D
+%0Aimport org.slf4j.Logger;%0D%0Aimport org.slf4j.LoggerFactory;%0D
 %0A%0D%0A/**%0D%0A
@@ -276,16 +276,114 @@
 nner %7B%0D%0A
+  private static final Logger LOG = LoggerFactory.getLogger(TestWro4jCommandLineRunner.class);%0D%0A%0D%0A
   @Befor
@@ -416,34 +416,25 @@
  %7B%0D%0A    
-System.out.println
+LOG.debug
 (%22startu
@@ -1115,26 +1115,17 @@
     
-System.out.println
+LOG.debug
 (wro

remove stdout