Author: veithen
Date: Sat Oct 27 17:25:01 2018
New Revision: 1844981

URL: http://svn.apache.org/viewvc?rev=1844981&view=rev
Log:
Remove unused code.

Modified:
    
axis/axis2/java/core/trunk/modules/jaxbri-codegen/src/test/java/org/temp/XMLSchemaTest.java

Modified: 
axis/axis2/java/core/trunk/modules/jaxbri-codegen/src/test/java/org/temp/XMLSchemaTest.java
URL: 
http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/jaxbri-codegen/src/test/java/org/temp/XMLSchemaTest.java?rev=1844981&r1=1844980&r2=1844981&view=diff
==============================================================================
--- 
axis/axis2/java/core/trunk/modules/jaxbri-codegen/src/test/java/org/temp/XMLSchemaTest.java
 (original)
+++ 
axis/axis2/java/core/trunk/modules/jaxbri-codegen/src/test/java/org/temp/XMLSchemaTest.java
 Sat Oct 27 17:25:01 2018
@@ -20,20 +20,15 @@
 package org.temp;
 
 import junit.framework.TestCase;
-import org.apache.axis2.util.XMLPrettyPrinter;
 import org.apache.ws.commons.schema.XmlSchema;
 import org.apache.ws.commons.schema.XmlSchemaCollection;
 import org.custommonkey.xmlunit.Diff;
 
 import javax.xml.transform.stream.StreamSource;
-import java.io.BufferedReader;
 import java.io.ByteArrayOutputStream;
 import java.io.File;
 import java.io.FileInputStream;
-import java.io.FileReader;
-import java.io.FileWriter;
 import java.io.InputStream;
-import java.io.UnsupportedEncodingException;
 import java.util.ArrayList;
 
 public abstract class XMLSchemaTest extends TestCase {
@@ -69,7 +64,6 @@ public abstract class XMLSchemaTest exte
     }
 
     public void loadSampleSchemaFile(ArrayList<XmlSchema> schemas) throws 
Exception{
-        XmlSchemaCollection xmlSchemaCollection = new XmlSchemaCollection();
         File file = null;
         int i = 1;
        
@@ -87,30 +81,6 @@ public abstract class XMLSchemaTest exte
        
     }
     
-    public XmlSchema loadSingleSchemaFile(int i) throws Exception{
-        File file = new File(SampleSchemasDirectory + "sampleSchema" + i
-                + ".xsd");
-        InputStream is = new FileInputStream(file);
-        XmlSchemaCollection schemaCol = new XmlSchemaCollection();
-        XmlSchema schema = schemaCol.read(new StreamSource(is));
-        return schema;
-    }
-     
-    
-    public String readFile(String fileName) throws Exception {
-        File file = new File(fileName);
-        char[] buffer = null;
-        BufferedReader bufferedReader = new BufferedReader(new 
FileReader(file));
-        buffer = new char[(int) file.length()];
-        int i = 0;
-        int c = bufferedReader.read();
-        while (c != -1) {
-            buffer[i++] = (char) c;
-            c = bufferedReader.read(); 
-        }
-        return new String(buffer);
-    }
-
     public String readXMLfromSchemaFile(String path) throws Exception {
         InputStream is = new FileInputStream(path);
         XmlSchemaCollection schemaCol = new XmlSchemaCollection();
@@ -120,35 +90,4 @@ public abstract class XMLSchemaTest exte
         is.close();
         return stream.toString();
     }
-    
-   
-    public String readWSDLFromFile(String path) throws Exception {
-        File file=new File(path);
-        XMLPrettyPrinter.prettify(file);    //this is used to correct 
unnecessary formatting in the file
-        return readFile(path);
-    }
-    
-    public void writeToFile(String path,String data) throws Exception{
-        FileWriter fileWriter=new FileWriter(new File(path));
-        fileWriter.write(data);
-        fileWriter.flush();
-        fileWriter.close();        
-    }
-    
-    public String schemaToString(XmlSchema schema) throws 
UnsupportedEncodingException {
-        ByteArrayOutputStream stream=new ByteArrayOutputStream();
-        schema.write(stream);
-        return stream.toString();
-    }
-    
-    public XmlSchema loadSingleSchemaFile(String path) throws Exception{
-        File file = new File(path);
-        InputStream is = new FileInputStream(file);
-        XmlSchemaCollection schemaCol = new XmlSchemaCollection();
-        XmlSchema schema = schemaCol.read(new StreamSource(is));
-        return schema;
-    }
-    
-    
-
 }


Reply via email to