KAFKA-1885 Upgrade junit dependency in core to 4.6 version to allow running individual test methods via gradle command line; reviewed by Neha Narkhede

This commit is contained in:
jaikiran pai 2015-01-25 19:15:51 -08:00 committed by Neha Narkhede
parent 4aa3dab3de
commit 0b171dee1f
2 changed files with 6 additions and 1 deletions

View File

@ -34,6 +34,11 @@ Follow instuctions in http://kafka.apache.org/documentation.html#quickstart
### Running a particular unit test ### ### Running a particular unit test ###
./gradlew -Dtest.single=RequestResponseSerializationTest core:test ./gradlew -Dtest.single=RequestResponseSerializationTest core:test
### Running a particular test method within a unit test ###
./gradlew core:test --tests kafka.api.test.ProducerFailureHandlingTest.testCannotSendToInternalTopic
./gradlew clients:test --tests org.apache.kafka.clients.producer.MetadataTest.testMetadataUpdateWaitTime
### Running a particular unit test with log4j output ### ### Running a particular unit test with log4j output ###
change the log4j setting in either clients/src/test/resources/log4j.properties or core/src/test/resources/log4j.properties change the log4j setting in either clients/src/test/resources/log4j.properties or core/src/test/resources/log4j.properties
./gradlew -i -Dtest.single=RequestResponseSerializationTest core:test ./gradlew -i -Dtest.single=RequestResponseSerializationTest core:test

View File

@ -209,7 +209,7 @@ project(':core') {
compile 'com.yammer.metrics:metrics-core:2.2.0' compile 'com.yammer.metrics:metrics-core:2.2.0'
compile 'net.sf.jopt-simple:jopt-simple:3.2' compile 'net.sf.jopt-simple:jopt-simple:3.2'
testCompile 'junit:junit:4.1' testCompile 'junit:junit:4.6'
testCompile 'org.easymock:easymock:3.0' testCompile 'org.easymock:easymock:3.0'
testCompile 'org.objenesis:objenesis:1.2' testCompile 'org.objenesis:objenesis:1.2'
testCompile project(':clients') testCompile project(':clients')