mirror of https://github.com/apache/nifi.git
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:
parent
79fa4ad46f
commit
3cdd3f60f6
|
@ -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());
|
||||
|
|
@ -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());
|
||||
|
Loading…
Reference in New Issue