Author: mladen.turk(a)jboss.com
Date: 2007-10-29 07:51:26 -0400 (Mon, 29 Oct 2007)
New Revision: 1153
Added:
trunk/sight/test/org/jboss/sight/VolumeTest.java
Log:
Add Volume Test case
Added: trunk/sight/test/org/jboss/sight/VolumeTest.java
===================================================================
--- trunk/sight/test/org/jboss/sight/VolumeTest.java (rev 0)
+++ trunk/sight/test/org/jboss/sight/VolumeTest.java 2007-10-29 11:51:26 UTC (rev 1153)
@@ -0,0 +1,63 @@
+/*
+ * SIGHT - System information gathering hybrid tool
+ *
+ * Copyright(c) 2007 Red Hat Middleware, LLC,
+ * and individual contributors as indicated by the @authors tag.
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library in the file COPYING.LIB;
+ * if not, write to the Free Software Foundation, Inc.,
+ * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
+ *
+ */
+package org.jboss.sight;
+
+import java.nio.ByteBuffer;
+import junit.framework.Assert;
+import junit.framework.TestCase;
+
+/**
+ * Volume Test.
+ *
+ */
+public class VolumeTest extends TestCase
+{
+
+ public static void main(String[] args)
+ {
+ junit.textui.TestRunner.run(VolumeTest.class);
+ }
+
+ protected void setUp()
+ throws Exception
+ {
+ Library.initialize("");
+ }
+
+ protected void tearDown()
+ throws Exception
+ {
+ Library.shutdown();
+ }
+
+ public void testVolume()
+ throws Exception
+ {
+ for (Volume v : Volume.getVolumes()) {
+ assertNotNull(v.MountPoint);
+ }
+ }
+
+}
Property changes on: trunk/sight/test/org/jboss/sight/VolumeTest.java
___________________________________________________________________
Name: svn:eol-style
+ native
Show replies by date