rename isProperJvm() method to be more accurate
diff --git a/src/test/java/org/yaml/snakeyaml/generics/BirdTest.java b/src/test/java/org/yaml/snakeyaml/generics/BirdTest.java
index c7be6b0..ec4d1eb 100644
--- a/src/test/java/org/yaml/snakeyaml/generics/BirdTest.java
+++ b/src/test/java/org/yaml/snakeyaml/generics/BirdTest.java
@@ -23,7 +23,7 @@
String output = yaml.dump(bird);
Bird parsed;
String javaVendor = System.getProperty("java.vm.name");
- if (GenericJvmDetector.isProperJvm()) {
+ if (JvmDetector.isProperIntrospection()) {
// no global tags
System.out.println("java.vm.name: " + javaVendor);
assertEquals("no global tags must be emitted.", "home: {height: 3}\nname: Eagle\n",
diff --git a/src/test/java/org/yaml/snakeyaml/generics/GenericJvmDetector.java b/src/test/java/org/yaml/snakeyaml/generics/JvmDetector.java
similarity index 84%
rename from src/test/java/org/yaml/snakeyaml/generics/GenericJvmDetector.java
rename to src/test/java/org/yaml/snakeyaml/generics/JvmDetector.java
index dd81fa7..e1219ac 100644
--- a/src/test/java/org/yaml/snakeyaml/generics/GenericJvmDetector.java
+++ b/src/test/java/org/yaml/snakeyaml/generics/JvmDetector.java
@@ -7,12 +7,12 @@
import java.beans.Introspector;
import java.beans.PropertyDescriptor;
-public class GenericJvmDetector {
+public class JvmDetector {
/**
* Check whether the proper class Nest for Bird's property 'home' is
- * recognised.
+ * recognized.
*/
- public static boolean isProperJvm() throws IntrospectionException {
+ public static boolean isProperIntrospection() throws IntrospectionException {
for (PropertyDescriptor property : Introspector.getBeanInfo(Bird.class)
.getPropertyDescriptors()) {
if (property.getName().equals("home")) {
diff --git a/src/test/java/org/yaml/snakeyaml/recursive/generics/HumanGenericsTest.java b/src/test/java/org/yaml/snakeyaml/recursive/generics/HumanGenericsTest.java
index 8e694fc..f239e80 100644
--- a/src/test/java/org/yaml/snakeyaml/recursive/generics/HumanGenericsTest.java
+++ b/src/test/java/org/yaml/snakeyaml/recursive/generics/HumanGenericsTest.java
@@ -24,12 +24,12 @@
import org.yaml.snakeyaml.Util;
import org.yaml.snakeyaml.Yaml;
import org.yaml.snakeyaml.constructor.Constructor;
-import org.yaml.snakeyaml.generics.GenericJvmDetector;
+import org.yaml.snakeyaml.generics.JvmDetector;
public class HumanGenericsTest extends TestCase {
public void testNoChildren() throws IOException, IntrospectionException {
- if (!GenericJvmDetector.isProperJvm()) {
+ if (!JvmDetector.isProperIntrospection()) {
return;
}
HumanGen father = new HumanGen();
@@ -63,7 +63,7 @@
* @throws IntrospectionException
*/
public void testNoChildren2() throws IOException, IntrospectionException {
- if (!GenericJvmDetector.isProperJvm()) {
+ if (!JvmDetector.isProperIntrospection()) {
return;
}
HumanGen father = new HumanGen();
@@ -94,7 +94,7 @@
}
public void testChildren() throws IOException, IntrospectionException {
- if (!GenericJvmDetector.isProperJvm()) {
+ if (!JvmDetector.isProperIntrospection()) {
return;
}
HumanGen father = new HumanGen();
@@ -167,7 +167,7 @@
}
public void testChildren2() throws IOException, IntrospectionException {
- if (!GenericJvmDetector.isProperJvm()) {
+ if (!JvmDetector.isProperIntrospection()) {
return;
}
HumanGen2 father = new HumanGen2();
@@ -236,7 +236,7 @@
}
public void testChildren3() throws IOException, IntrospectionException {
- if (!GenericJvmDetector.isProperJvm()) {
+ if (!JvmDetector.isProperIntrospection()) {
return;
}
HumanGen3 father = new HumanGen3();
@@ -315,7 +315,7 @@
*/
@SuppressWarnings("unchecked")
public void testChildrenSetAsRoot() throws IOException, IntrospectionException {
- if (!GenericJvmDetector.isProperJvm()) {
+ if (!JvmDetector.isProperIntrospection()) {
return;
}
String etalon = Util.getLocalResource("recursive/generics/with-children-as-set.yaml");
@@ -353,7 +353,7 @@
*/
@SuppressWarnings("unchecked")
public void testChildrenMapAsRoot() throws IOException, IntrospectionException {
- if (!GenericJvmDetector.isProperJvm()) {
+ if (!JvmDetector.isProperIntrospection()) {
return;
}
String etalon = Util.getLocalResource("recursive/generics/with-children-as-map.yaml");
@@ -387,7 +387,7 @@
*/
@SuppressWarnings("unchecked")
public void testChildrenListRoot() throws IOException, IntrospectionException {
- if (!GenericJvmDetector.isProperJvm()) {
+ if (!JvmDetector.isProperIntrospection()) {
return;
}
HumanGen3 father = new HumanGen3();
@@ -460,7 +460,7 @@
}
public void testBeanRing() throws IOException, IntrospectionException {
- if (!GenericJvmDetector.isProperJvm()) {
+ if (!JvmDetector.isProperIntrospection()) {
return;
}
HumanGen man1 = new HumanGen();