Java Code Examples for org.gradle.internal.impldep.org.testng.Assert#assertEquals()

The following examples show how to use org.gradle.internal.impldep.org.testng.Assert#assertEquals() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AppEngineStandardExtensionTest.java    From app-gradle-plugin with Apache License 2.0 6 votes vote down vote up
@Test
public void testFileAsString() throws IOException {
  Project p = setUpTestProject("file-as-string");

  AppEngineStandardExtension ext = p.getExtensions().getByType(AppEngineStandardExtension.class);
  StageStandardExtension stage = ext.getStage();
  RunExtension run = ext.getRun();
  ToolsExtension tools = ext.getTools();

  Assert.assertEquals(run.getServices().size(), 1);
  Assert.assertEquals("test", run.getServices().get(0).getName());
  Assert.assertEquals("test", stage.getSourceDirectory().getName());
  Assert.assertEquals("test", stage.getStagingDirectory().getName());
  Assert.assertEquals("test", stage.getDockerfile().getName());
  Assert.assertEquals("test", tools.getCloudSdkHome().getName());
}
 
Example 2
Source File: AppEngineStandardExtensionTest.java    From app-gradle-plugin with Apache License 2.0 6 votes vote down vote up
@Test
public void testFileAsFile() throws IOException {
  Project p = setUpTestProject("file-as-file");

  AppEngineStandardExtension ext = p.getExtensions().getByType(AppEngineStandardExtension.class);
  RunExtension run = ext.getRun();
  StageStandardExtension stage = ext.getStage();
  ToolsExtension tools = ext.getTools();

  Assert.assertEquals(run.getServices().size(), 1);
  Assert.assertEquals("test", run.getServices().get(0).getName());
  Assert.assertEquals("test", stage.getSourceDirectory().getName());
  Assert.assertEquals("test", stage.getStagingDirectory().getName());
  Assert.assertEquals("test", stage.getDockerfile().getName());
  Assert.assertEquals("test", tools.getCloudSdkHome().getName());
}
 
Example 3
Source File: AppEngineStandardExtensionTest.java    From app-gradle-plugin with Apache License 2.0 5 votes vote down vote up
@Test
public void testReadEnvironment() throws IOException {
  Project p = setUpTestProject("environment-params");

  AppEngineStandardExtension ext = p.getExtensions().getByType(AppEngineStandardExtension.class);
  RunExtension run = ext.getRun();

  Assert.assertEquals(run.getEnvironment(), ImmutableMap.of("key1", "value1", "key2", "value2"));
}
 
Example 4
Source File: AppEngineStandardExtensionTest.java    From app-gradle-plugin with Apache License 2.0 5 votes vote down vote up
@Test
public void testFilesAsString() throws IOException {
  Project p = setUpTestProject("files-as-string");

  AppEngineStandardExtension ext = p.getExtensions().getByType(AppEngineStandardExtension.class);
  RunExtension run = ext.getRun();

  Assert.assertEquals(run.getServices().size(), 2);
  Assert.assertEquals("test0", run.getServices().get(0).getName());
  Assert.assertEquals("test1", run.getServices().get(1).getName());
}
 
Example 5
Source File: AppEngineStandardExtensionTest.java    From app-gradle-plugin with Apache License 2.0 5 votes vote down vote up
@Test
public void testFilesAsFiles() throws IOException {
  Project p = setUpTestProject("files-as-files");

  AppEngineStandardExtension ext = p.getExtensions().getByType(AppEngineStandardExtension.class);
  RunExtension run = ext.getRun();

  Assert.assertEquals(run.getServices().size(), 2);
  Assert.assertEquals("test0", run.getServices().get(0).getName());
  Assert.assertEquals("test1", run.getServices().get(1).getName());
}