Issue 617:address NPE failures in CI

This commit is contained in:
Adrian Cole 2011-07-05 14:36:49 -07:00
parent f42d2bdb31
commit fae29d217e
17 changed files with 34 additions and 10 deletions

View File

@ -81,7 +81,8 @@ import com.google.inject.Module;
*
* @author Oleksiy Yarmula
*/
@Test(enabled = true, groups = "live")
// NOTE:without testName, this will not call @Before* and fail w/NPE during surefire
@Test(enabled = false, groups = "live", testName = "GoGridLiveTestDisabled")
public class GoGridLiveTestDisabled {
private GoGridClient client;

View File

@ -35,6 +35,8 @@ import com.sun.jersey.api.uri.UriBuilderImpl;
*
* @author Oleksiy Yarmula
*/
//NOTE:without testName, this will not call @Before* and fail w/NPE during surefire
@Test(groups = "unit", testName = "BindIdsToQueryParamsTest")
public class BindIdsToQueryParamsTest {
@Test

View File

@ -35,6 +35,8 @@ import com.sun.jersey.api.uri.UriBuilderImpl;
*
* @author Oleksiy Yarmula
*/
//NOTE:without testName, this will not call @Before* and fail w/NPE during surefire
@Test(groups = "unit", testName = "BindNamesToQueryParamsTest")
public class BindNamesToQueryParamsTest {
@Test

View File

@ -25,7 +25,8 @@ import org.testng.annotations.Test;
/**
* @author Oleksiy Yarmula
*/
@Test(groups = "live", enabled = true, sequential = true)
//NOTE:without testName, this will not call @Before* and fail w/NPE during surefire
@Test(groups = "live", singleThreaded = true, testName = "GoGridComputeServiceLiveTest")
public class GoGridComputeServiceLiveTest extends BaseComputeServiceLiveTest {
public GoGridComputeServiceLiveTest() {
provider = "gogrid";

View File

@ -38,7 +38,8 @@ import com.google.common.collect.ImmutableSet;
*
* @author Adrian Cole
*/
@Test(groups = "live")
//NOTE:without testName, this will not call @Before* and fail w/NPE during surefire
@Test(groups = "live", singleThreaded = true, testName = "GoGridTemplateBuilderLiveTest")
public class GoGridTemplateBuilderLiveTest extends BaseTemplateBuilderLiveTest {
public GoGridTemplateBuilderLiveTest() {

View File

@ -24,7 +24,8 @@ import org.testng.annotations.Test;
/**
* @author Adrian Cole
*/
@Test(groups = "unit")
//NOTE:without testName, this will not call @Before* and fail w/NPE during surefire
@Test(groups = "unit", testName = "GoGridComputeServiceContextModuleTest")
public class GoGridComputeServiceContextModuleTest {
public void testAllStatusCovered() {

View File

@ -54,7 +54,8 @@ import com.google.common.collect.ImmutableSet;
/**
* @author Adrian Cole
*/
@Test(groups = "unit")
//NOTE:without testName, this will not call @Before* and fail w/NPE during surefire
@Test(groups = "unit", testName = "ServerToNodeMetadataTest")
public class ServerToNodeMetadataTest {
@SuppressWarnings("unchecked")

View File

@ -28,6 +28,8 @@ import org.testng.annotations.Test;
*
* @author Andrew Kennedy
*/
//NOTE:without testName, this will not call @Before* and fail w/NPE during surefire
@Test(groups = "unit", testName = "GoGridTemplateOptionsTest")
public class GoGridTemplateOptionsTest {
@Test
public void testAs() {

View File

@ -47,7 +47,8 @@ import com.google.inject.Provides;
/**
* @author Adrian Cole
*/
@Test(groups = "unit")
//NOTE:without testName, this will not call @Before* and fail w/NPE during surefire
@Test(groups = "unit", testName = "ParseCredentialsFromJsonResponseTest")
public class ParseCredentialsFromJsonResponseTest {
@Test(expectedExceptions = IllegalStateException.class)

View File

@ -35,6 +35,8 @@ import com.google.inject.Injector;
/**
* @author Oleksiy Yarmula
*/
//NOTE:without testName, this will not call @Before* and fail w/NPE during surefire
@Test(groups = "unit", testName = "ParseErrorFromJsonResponseTest")
public class ParseErrorFromJsonResponseTest {
Injector i = Guice.createInjector(new GsonModule() {

View File

@ -51,7 +51,8 @@ import com.google.inject.Provides;
/**
* @author Oleksiy Yarmula
*/
@Test(groups = "unit")
//NOTE:without testName, this will not call @Before* and fail w/NPE during surefire
@Test(groups = "unit", testName = "ParseJobsFromJsonResponseTest")
public class ParseJobsFromJsonResponseTest {
@Test

View File

@ -54,7 +54,8 @@ import com.google.inject.Provides;
/**
* @author Oleksiy Yarmula
*/
@Test(groups = "unit")
//NOTE:without testName, this will not call @Before* and fail w/NPE during surefire
@Test(groups = "unit", testName = "ParseLoadBalancersFromJsonResponseTest")
public class ParseLoadBalancersFromJsonResponseTest {
@Test

View File

@ -47,7 +47,8 @@ import com.google.inject.Provides;
/**
* @author Oleksiy Yarmula
*/
@Test(groups = "unit")
//NOTE:without testName, this will not call @Before* and fail w/NPE during surefire
@Test(groups = "unit", testName = "ParseServerNameToCredentialsMapFromJsonResponseTest")
public class ParseServerNameToCredentialsMapFromJsonResponseTest {
@Test

View File

@ -57,7 +57,8 @@ import com.google.inject.Provides;
*
* @author Adrian Cole
*/
@Test(groups = "unit")
//NOTE:without testName, this will not call @Before* and fail w/NPE during surefire
@Test(groups = "unit", testName = "ParseServersFromJsonResponseTest")
public class ParseServersFromJsonResponseTest {
@Test

View File

@ -40,6 +40,8 @@ import com.google.inject.Guice;
*
* @author Oleksiy Yarmula
*/
//NOTE:without testName, this will not call @Before* and fail w/NPE during surefire
@Test(groups = "unit", testName = "GoGridErrorHandlerTest")
public class GoGridErrorHandlerTest {
@Test

View File

@ -32,6 +32,8 @@ import org.testng.annotations.Test;
*
* @author Adrian Cole
*/
//NOTE:without testName, this will not call @Before* and fail w/NPE during surefire
@Test(groups = "unit", testName = "AddServerOptionsTest")
public class AddServerOptionsTest {
@Test

View File

@ -35,6 +35,8 @@ import com.google.common.collect.ImmutableSet;
/**
* @author Oleksiy Yarmula
*/
//NOTE:without testName, this will not call @Before* and fail w/NPE during surefire
@Test(groups = "unit", testName = "ServerLatestJobCompletedTest")
public class ServerLatestJobCompletedTest {
@Test