/*******************************************************************************
 * Copyright (c) 2014, Art Clarke.  All rights reserved.
 *  
 * This file is part of Humble-Video.
 *
 * Humble-Video is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * Humble-Video is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with Humble-Video.  If not, see <http://www.gnu.org/licenses/>.
 *******************************************************************************/
package io.humble.video.demos;

import java.awt.AWTException;
import java.io.File;
import java.io.IOException;
import java.net.URL;

import org.junit.Test;

/**
 * @author aclarke
 *
 */
public class RecordAndEncodeVideoTest {
  /**
   * Simple test to make sure no exceptions are generated by {@link #GetContainerInfo.main()}.
   * 
   * You should hand-verify the printed results.
   * @throws AWTException 
   */
  @Test
  public void testMain() throws InterruptedException, IOException, AWTException {
    String headless = System.getProperty("java.awt.headless");
    
    if (headless != null && Boolean.parseBoolean(headless))
      // skip this test on headless machines.
      return;
    
    final String[] args = new String[]{this.getClass().getCanonicalName()+".testMain.mp4"};
    RecordAndEncodeVideo.main(args);
  }

}

@@ -1007,61 +1007,19 @@
 .io.
-File;%0Aimport java.io.IOException;%0Aimport java.net.URL
+IOException
 ;%0A%0Ai
@@ -1182,40 +1182,19 @@
  by 
-%7B@link #GetContainerInfo.main()%7D
+main method
 .%0A  
@@ -1250,35 +1250,8 @@
 ts.%0A
-   * @throws AWTException %0A
    *

remove unused imports