From kato-commits-return-453-apmail-incubator-kato-commits-archive=incubator.apache.org@incubator.apache.org Tue Jul 07 16:36:34 2009 Return-Path: Delivered-To: apmail-incubator-kato-commits-archive@minotaur.apache.org Received: (qmail 287 invoked from network); 7 Jul 2009 16:36:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 7 Jul 2009 16:36:34 -0000 Received: (qmail 84510 invoked by uid 500); 7 Jul 2009 16:36:44 -0000 Delivered-To: apmail-incubator-kato-commits-archive@incubator.apache.org Received: (qmail 84495 invoked by uid 500); 7 Jul 2009 16:36:44 -0000 Mailing-List: contact kato-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: kato-dev@incubator.apache.org Delivered-To: mailing list kato-commits@incubator.apache.org Received: (qmail 84485 invoked by uid 99); 7 Jul 2009 16:36:44 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Jul 2009 16:36:44 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Jul 2009 16:36:41 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id E48A52388891; Tue, 7 Jul 2009 16:36:19 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r791902 - in /incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.hprof.api/src: main/java/org/apache/kato/hprof/java/ main/resources/META-INF/services/ test/java/test/apache/kato/hprof/java/ Date: Tue, 07 Jul 2009 16:36:19 -0000 To: kato-commits@incubator.apache.org From: monteith@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090707163619.E48A52388891@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: monteith Date: Tue Jul 7 16:36:19 2009 New Revision: 791902 URL: http://svn.apache.org/viewvc?rev=791902&view=rev Log: Export hprof api as a service, and add version strings. Added: incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.hprof.api/src/main/resources/META-INF/services/org.apache.kato.image.ImageFactory Modified: incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.hprof.api/src/main/java/org/apache/kato/hprof/java/JavaRuntimeImpl.java incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.hprof.api/src/test/java/test/apache/kato/hprof/java/TestJavaRuntime.java Modified: incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.hprof.api/src/main/java/org/apache/kato/hprof/java/JavaRuntimeImpl.java URL: http://svn.apache.org/viewvc/incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.hprof.api/src/main/java/org/apache/kato/hprof/java/JavaRuntimeImpl.java?rev=791902&r1=791901&r2=791902&view=diff ============================================================================== --- incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.hprof.api/src/main/java/org/apache/kato/hprof/java/JavaRuntimeImpl.java (original) +++ incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.hprof.api/src/main/java/org/apache/kato/hprof/java/JavaRuntimeImpl.java Tue Jul 7 16:36:19 2009 @@ -165,13 +165,13 @@ @Override public String getFullVersion() throws CorruptDataException { // TODO Auto-generated method stub - return null; + return "Hprof dump."; } @Override public String getVersion() throws CorruptDataException { // TODO Auto-generated method stub - return null; + return "Hprof dump."; } Added: incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.hprof.api/src/main/resources/META-INF/services/org.apache.kato.image.ImageFactory URL: http://svn.apache.org/viewvc/incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.hprof.api/src/main/resources/META-INF/services/org.apache.kato.image.ImageFactory?rev=791902&view=auto ============================================================================== --- incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.hprof.api/src/main/resources/META-INF/services/org.apache.kato.image.ImageFactory (added) +++ incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.hprof.api/src/main/resources/META-INF/services/org.apache.kato.image.ImageFactory Tue Jul 7 16:36:19 2009 @@ -0,0 +1 @@ +org.apache.kato.hprof.image.ImageFactoryImpl \ No newline at end of file Modified: incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.hprof.api/src/test/java/test/apache/kato/hprof/java/TestJavaRuntime.java URL: http://svn.apache.org/viewvc/incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.hprof.api/src/test/java/test/apache/kato/hprof/java/TestJavaRuntime.java?rev=791902&r1=791901&r2=791902&view=diff ============================================================================== --- incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.hprof.api/src/test/java/test/apache/kato/hprof/java/TestJavaRuntime.java (original) +++ incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.hprof.api/src/test/java/test/apache/kato/hprof/java/TestJavaRuntime.java Tue Jul 7 16:36:19 2009 @@ -32,13 +32,13 @@ public void testGetFullVersion() throws IOException, CorruptDataException { JavaRuntime runtime=getJavaRuntime(); - assertNull(runtime.getFullVersion()); + assertNotNull(runtime.getFullVersion()); } public void testGetVersion() throws IOException, CorruptDataException { JavaRuntime runtime=getJavaRuntime(); - assertNull(runtime.getVersion()); + assertNotNull(runtime.getVersion()); }