// Path: src/test/java/ys/gclog/LogAware.java
// public interface LogAware {
// 
//   static InputStream getLog(String name) {
//     InputStream stream = Thread.currentThread().getContextClassLoader().getResourceAsStream(name);
//     if (stream == null) {
//       throw new IllegalStateException(String.format("Resource %s is not found.", name));
//     }
//     return stream;
//   }
// }


import static org.junit.Assert.assertEquals;
import java.io.InputStream;
import org.junit.Before;
import org.junit.Test;
import ys.gclog.LogAware;
package ys.gclog.parser;





public class GCLogParserTest {

  private GCLogParser parser;

  @Before
  public void setUp() {
    parser = new GCLogParser();
  }

  /*
   * Serial collector, Java 7.
   */

  @Test
  public void testParse_java7_serial() throws Exception {
// Path: src/test/java/ys/gclog/LogAware.java
// public interface LogAware {
// 
//   static InputStream getLog(String name) {
//     InputStream stream = Thread.currentThread().getContextClassLoader().getResourceAsStream(name);
//     if (stream == null) {
//       throw new IllegalStateException(String.format("Resource %s is not found.", name));
//     }
//     return stream;
//   }
// }


// Path: src/test/java/ys/gclog/parser/GCLogParserTest.java
import static org.junit.Assert.assertEquals;
import java.io.InputStream;
import org.junit.Before;
import org.junit.Test;
import ys.gclog.LogAware;

package ys.gclog.parser;





public class GCLogParserTest {

  private GCLogParser parser;

  @Before
  public void setUp() {
    parser = new GCLogParser();
  }

  /*
   * Serial collector, Java 7.
   */

  @Test
  public void testParse_java7_serial() throws Exception {
    try (InputStream input = LogAware.getLog("gc-7-serial-01.log")) {