You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kafka.apache.org by ne...@apache.org on 2015/01/26 04:16:04 UTC

kafka git commit: 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

Repository: kafka
Updated Branches:
  refs/heads/trunk 4aa3dab3d -> 0b171dee1


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


Project: http://git-wip-us.apache.org/repos/asf/kafka/repo
Commit: http://git-wip-us.apache.org/repos/asf/kafka/commit/0b171dee
Tree: http://git-wip-us.apache.org/repos/asf/kafka/tree/0b171dee
Diff: http://git-wip-us.apache.org/repos/asf/kafka/diff/0b171dee

Branch: refs/heads/trunk
Commit: 0b171dee1fca16595f635bc9991056712e9e3b1a
Parents: 4aa3dab
Author: jaikiran pai <ja...@gmail.com>
Authored: Sun Jan 25 19:15:51 2015 -0800
Committer: Neha Narkhede <ne...@gmail.com>
Committed: Sun Jan 25 19:15:57 2015 -0800

----------------------------------------------------------------------
 README.md    | 5 +++++
 build.gradle | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kafka/blob/0b171dee/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
index 35e06b1..9bdcf70 100644
--- a/README.md
+++ b/README.md
@@ -34,6 +34,11 @@ Follow instuctions in http://kafka.apache.org/documentation.html#quickstart
 ### Running a particular unit 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 ###
     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

http://git-wip-us.apache.org/repos/asf/kafka/blob/0b171dee/build.gradle
----------------------------------------------------------------------
diff --git a/build.gradle b/build.gradle
index 1cbab29..3a509c3 100644
--- a/build.gradle
+++ b/build.gradle
@@ -209,7 +209,7 @@ project(':core') {
     compile 'com.yammer.metrics:metrics-core:2.2.0'
     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.objenesis:objenesis:1.2'
     testCompile project(':clients')