NIFI-4949 Converted nifi-mongodb-services' unit tests into integration tests so that the @Ignore annotation doesn't have to be removed to make them run.

Signed-off-by: Pierre Villard <pierre.villard.fr@gmail.com>

This closes #2525.
This commit is contained in:
Mike Thomsen 2018-03-08 14:46:25 -05:00 committed by Pierre Villard
parent 79fa4ad46f
commit 3cdd3f60f6
2 changed files with 2 additions and 6 deletions

View File

@ -24,7 +24,6 @@ import org.bson.Document;
import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
import java.util.ArrayList;
@ -35,8 +34,7 @@ import java.util.Map;
import java.util.Random;
import java.util.UUID;
@Ignore("This is an integration test and requires a copy of MongoDB running on localhost")
public class TestMongoDBControllerService {
public class MongoDBControllerServiceIT {
private static final String DB_NAME = String.format("nifi_test-%d", Calendar.getInstance().getTimeInMillis());
private static final String COL_NAME = String.format("nifi_test-%d", Calendar.getInstance().getTimeInMillis());

View File

@ -25,7 +25,6 @@ import org.bson.Document;
import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
import java.util.Calendar;
@ -33,8 +32,7 @@ import java.util.HashMap;
import java.util.Map;
import java.util.Optional;
@Ignore("This is an integration test and requires a copy of MongoDB running on localhost")
public class TestMongoDBLookupService {
public class MongoDBLookupServiceIT {
private static final String DB_NAME = String.format("nifi_test-%d", Calendar.getInstance().getTimeInMillis());
private static final String COL_NAME = String.format("nifi_test-%d", Calendar.getInstance().getTimeInMillis());