ADT #1844909: Move sdk-repository XSD and tests from SdkManager to SdkLib.

This commit is contained in:
Raphael
2009-05-14 19:48:53 -07:00
parent 71f5d130f5
commit 0837619559
5 changed files with 15 additions and 11 deletions

View File

@@ -1,7 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<classpath> <classpath>
<classpathentry kind="src" path="src"/> <classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="tests"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry combineaccessrules="false" kind="src" path="/AndroidPrefs"/> <classpathentry combineaccessrules="false" kind="src" path="/AndroidPrefs"/>
<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/3"/>
<classpathentry kind="output" path="bin"/> <classpathentry kind="output" path="bin"/>
</classpath> </classpath>

View File

@@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package com.android.sdkmanager.repository; package com.android.sdklib.repository;
import java.io.InputStream; import java.io.InputStream;

View File

@@ -14,7 +14,9 @@
* limitations under the License. * limitations under the License.
*/ */
package com.android.sdkmanager.repository; package com.android.sdklib.repository;
import com.android.sdklib.repository.SdkRepositoryConstants;
import org.xml.sax.ErrorHandler; import org.xml.sax.ErrorHandler;
import org.xml.sax.SAXException; import org.xml.sax.SAXException;
@@ -36,7 +38,7 @@ import junit.framework.TestCase;
* References: * References:
* http://www.ibm.com/developerworks/xml/library/x-javaxmlvalidapi.html * http://www.ibm.com/developerworks/xml/library/x-javaxmlvalidapi.html
*/ */
public class TestXml extends TestCase { public class TestSdkRepository extends TestCase {
@Override @Override
protected void setUp() throws Exception { protected void setUp() throws Exception {
@@ -51,7 +53,7 @@ public class TestXml extends TestCase {
public void testValidateLocalRepositoryFile() throws Exception { public void testValidateLocalRepositoryFile() throws Exception {
InputStream xsdStream = SdkRepositoryConstants.getXsdStream(); InputStream xsdStream = SdkRepositoryConstants.getXsdStream();
InputStream xmlStream = TestXml.class.getResourceAsStream("repository_sample.xml"); InputStream xmlStream = TestSdkRepository.class.getResourceAsStream("repository_sample.xml");
SchemaFactory factory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI); SchemaFactory factory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);