package com.sendgrid;

import static org.junit.Assert.assertTrue;

import java.io.File;
import org.junit.Test;

public class TestRequiredFilesExist {

  // ./Docker or docker/Docker
  @Test
  public void checkDockerExists() {
    boolean dockerExists = new File("./Dockerfile").exists() ||
        new File("./docker/Dockerfile").exists();
    assertTrue(dockerExists);
  }

  // // ./docker-compose.yml or ./docker/docker-compose.yml
  // @Test public void checkDockerComposeExists() {
  //     boolean dockerComposeExists = new File("./docker-compose.yml").exists() ||
  //     new File("./docker/docker-compose.yml").exists();
  //     assertTrue(dockerComposeExists);
  // }

  // ./.env_sample
  @Test
  public void checkEnvSampleExists() {
    assertTrue(new File("./.env_sample").exists());
  }

  // ./.gitignore
  @Test
  public void checkGitIgnoreExists() {
    assertTrue(new File("./.gitignore").exists());
  }

  // ./.travis.yml
  @Test
  public void checkTravisExists() {
    assertTrue(new File("./.travis.yml").exists());
  }

  // ./.codeclimate.yml
  @Test
  public void checkCodeClimateExists() {
    assertTrue(new File("./.codeclimate.yml").exists());
  }

  // ./CHANGELOG.md
  @Test
  public void checkChangelogExists() {
    assertTrue(new File("./CHANGELOG.md").exists());
  }

  // ./CODE_OF_CONDUCT.md
  @Test
  public void checkCodeOfConductExists() {
    assertTrue(new File("./CODE_OF_CONDUCT.md").exists());
  }

  // ./CONTRIBUTING.md
  @Test
  public void checkContributingGuideExists() {
    assertTrue(new File("./CONTRIBUTING.md").exists());
  }

  // ./ISSUE_TEMPLATE.md
  @Test
  public void checkIssuesTemplateExists() {
    assertTrue(new File("./ISSUE_TEMPLATE.md").exists());
  }

  // ./LICENSE
  @Test
  public void checkLicenseExists() {
    assertTrue(new File("./LICENSE").exists());
  }

  // ./PULL_REQUEST_TEMPLATE.md
  @Test
  public void checkPullRequestExists() {
    assertTrue(new File("./PULL_REQUEST_TEMPLATE.md").exists());
  }

  // ./README.md
  @Test
  public void checkReadMeExists() {
    assertTrue(new File("./README.md").exists());
  }

  // ./TROUBLESHOOTING.md
  @Test
  public void checkTroubleShootingGuideExists() {
    assertTrue(new File("./TROUBLESHOOTING.md").exists());
  }

  // ./USAGE.md
  @Test
  public void checkUsageGuideExists() {
    assertTrue(new File("./USAGE.md").exists());
  }

  // ./USE_CASES.md
  @Test
  public void checkUseCases() {
    assertTrue(new File("./USE_CASES.md").exists());
  }
}

@@ -161,25 +161,12 @@
 cker
- or docker/Docker
+file
 %0A  @
@@ -214,304 +214,19 @@
     
-boolean dockerExists = new File(%22./Dockerfile%22).exists() %7C%7C%0A        new File(%22./docker/Dockerfile%22).exists();%0A    assertTrue(dockerExists);%0A  %7D%0A%0A  // // ./docker-compose.yml or ./docker/docker-compose.yml%0A  // @Test public void checkDockerComposeExists() %7B%0A  //     boolean dockerComposeExists = 
+assertTrue(
 new 
@@ -237,146 +237,33 @@
 (%22./
-d
+D
 ocker
--compose.yml%22).exists() %7C%7C%0A  //     new File(%22./docker/docker-compose.yml%22).exists();%0A  //     assertTrue(dockerComposeExists
+file%22).exists()
 );%0A 
- //
  %7D%0A%0A
@@ -1954,125 +1954,7 @@
 %0A  %7D
-%0A%0A  // ./USE_CASES.md%0A  @Test%0A  public void checkUseCases() %7B%0A    assertTrue(new File(%22./USE_CASES.md%22).exists());%0A  %7D
 %0A%7D%0A

update required files tests