james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b...@apache.org
Subject svn commit: r952775 - /james/jspf/trunk/tester/src/main/java/org/apache/james/jspf/tester/SPFYamlTestDescriptor.java
Date Tue, 08 Jun 2010 19:12:46 GMT
Author: bago
Date: Tue Jun  8 19:12:46 2010
New Revision: 952775

URL: http://svn.apache.org/viewvc?rev=952775&view=rev
Log:
Fix generics in test (ClassCastException)

Modified:
    james/jspf/trunk/tester/src/main/java/org/apache/james/jspf/tester/SPFYamlTestDescriptor.java

Modified: james/jspf/trunk/tester/src/main/java/org/apache/james/jspf/tester/SPFYamlTestDescriptor.java
URL: http://svn.apache.org/viewvc/james/jspf/trunk/tester/src/main/java/org/apache/james/jspf/tester/SPFYamlTestDescriptor.java?rev=952775&r1=952774&r2=952775&view=diff
==============================================================================
--- james/jspf/trunk/tester/src/main/java/org/apache/james/jspf/tester/SPFYamlTestDescriptor.java
(original)
+++ james/jspf/trunk/tester/src/main/java/org/apache/james/jspf/tester/SPFYamlTestDescriptor.java
Tue Jun  8 19:12:46 2010
@@ -44,7 +44,7 @@ import java.util.Set;
 public class SPFYamlTestDescriptor {
     private String comment;
     private Map<String, Map<String, ?>> tests;
-    private Map<String, Map> zonedata;
+    private Map<String, Object> zonedata;
     
     @SuppressWarnings("unchecked")
     public SPFYamlTestDescriptor(Map<String, ?> source, int i) {
@@ -72,7 +72,7 @@ public class SPFYamlTestDescriptor {
         return zonedata;
     }
     public void setZonedata(Map<String, Map> zonedata) {
-        this.zonedata = new HashMap<String, Map>();
+        this.zonedata = new HashMap<String, Object>();
         Set<String> keys = zonedata.keySet();
         for (Iterator<String> i = keys.iterator(); i.hasNext(); ) {
             String hostname = (String) i.next();
@@ -85,6 +85,7 @@ public class SPFYamlTestDescriptor {
         List<SPFYamlTestDescriptor> tests = new ArrayList<SPFYamlTestDescriptor>();
     
         InputStream is = SPFYamlTestDescriptor.class.getResourceAsStream(filename);
+        System.out.println(filename+": "+is);
         
         if (is != null) {
             Reader br = new BufferedReader(new InputStreamReader(is));



---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message