Package org.apache.harmony.tools

Examples of org.apache.harmony.tools.ClassProvider


        String classpath = getString(options, "-classpath");

        boolean inner = getBoolean(options, "-inner");
        boolean verbose = getBoolean(options, "-verbose");

        ClassProvider classProvider = new ClassProvider(bootClasspath,
                classpath, verbose);
        try {
            String n = System.getProperty("line.separator");
            String warning =
                  "/*" + n
View Full Code Here


        String classpath = getString(options, "-classpath");
        boolean show = getBoolean(options, "-show");
        Iterator namesIter = classNames.iterator();

        // Appending the user specified classpath to clasprovider
        ClassProvider classProvider = new ClassProvider(null, classpath, false);

        // The user can't type -show and put classnames - SUN Spec
        if ((namesIter.hasNext() == true) && (show == true)) {
            System.out.println("Cannot specify class arguments with the -show option");
            return 1;
View Full Code Here

        }

        boolean inner = getBoolean(options, "-inner");
        boolean verbose = getBoolean(options, "-verbose");

        ClassProvider classProvider = new ClassProvider(bootClasspath,
                classpath, verbose);

        StringBuffer result = new StringBuffer();
        try {
            String n = System.getProperty("line.separator");
View Full Code Here

        String classpath = getString(options, "-classpath");

        boolean inner = getBoolean(options, "-inner");
        boolean verbose = getBoolean(options, "-verbose");

        ClassProvider classProvider = new ClassProvider(bootClasspath,
                classpath, verbose);
        try {
            String n = System.getProperty("line.separator");
            String warning =
                  "/*" + n
View Full Code Here

        String classpath = getString(options, "-classpath");

        boolean inner = getBoolean(options, "-inner");
        boolean verbose = getBoolean(options, "-verbose");

        ClassProvider classProvider = new ClassProvider(bootClasspath,
                classpath, verbose);
        try {
            String n = System.getProperty("line.separator");
            String warning =
                  "/*" + n
View Full Code Here

import junit.framework.*;

public class Test extends TestCase {

    public void testCalculeSUID() throws ClassNotFoundException {
        ClassProvider classProvider = new ClassProvider(null, null, false);

        Clazz clazz = new Clazz(classProvider, "org.apache.harmony.tests.tools.serialver.Point");
        assertEquals("-2044326457932868113", "" + Main.calculeSUID(clazz));

        clazz = new Clazz(classProvider, "java.lang.String");
View Full Code Here

        clazz = new Clazz(classProvider, "java.util.Random");
        assertEquals("3905348978240129619", "" + Main.calculeSUID(clazz));
    }

    public void testIsSerializable() throws ClassNotFoundException {
        ClassProvider classProvider = new ClassProvider(null, null, false);

        Clazz clazz = new Clazz(classProvider, "org.apache.harmony.tests.tools.serialver.NoSerialize");
        assertEquals(false, Main.isSerializable(clazz));

        clazz = new Clazz(classProvider, "java.lang.Thread");
View Full Code Here

TOP

Related Classes of org.apache.harmony.tools.ClassProvider

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.