Package com.sun.grid.jsv.JobDescription

Examples of com.sun.grid.jsv.JobDescription.Verification


   
    public void testVerification() {
        System.out.println("verification");

        JobDescription instance = new JobDescription();
        Verification expResult = Verification.VERIFY;

        // Test that default value doesn't cause an exception
        instance.getVerification();

        instance.setVerification(expResult);

        Verification result = instance.getVerification();

        assertEquals("The getVerification() method did not return the value set by setVerification()", expResult, result);

        instance.setVerification(null);
        result = instance.getVerification();
View Full Code Here


        List<String> expectedList = new ArrayList<String>(2);
        List<? extends Object> resultList;
        List<Integer> expectedIds = new ArrayList<Integer>(2);
        Map<String, String> expectedMap = new HashMap<String, String>();
        Map<String, String> resultMap;
        Verification expectedVerification = Verification.VERIFY;
        Verification resultVerification;
        CheckpointSpecifier expectedCkpt = new CheckpointSpecifier();
        CheckpointSpecifier resultCkpt = null;
        MailSpecifier expectedMail = new MailSpecifier();
        MailSpecifier resultMail = null;
        ParallelEnvironment expectedPe = new ParallelEnvironment();
View Full Code Here

        Calendar expectedTime = Calendar.getInstance();
        Map<String, String> expectedContext = new HashMap<String, String>();
        List<String> expectedList = new ArrayList<String>(2);
        List<Integer> expectedIds = new ArrayList<Integer>(2);
        Map<String, String> expectedMap = new HashMap<String, String>();
        Verification expectedVerification = Verification.VERIFY;
        String resultString;
        String[] resultArray;
        CheckpointSpecifier expectedCkpt = new CheckpointSpecifier();
        MailSpecifier expectedMail = new MailSpecifier();
        ParallelEnvironment expectedPe = new ParallelEnvironment();
View Full Code Here

        List<? extends Object> resultList;
        String resourceString = "test1=test2,test3=test4";
        Map<String, String> expectedResources = new HashMap<String, String>();
        Map<String, String> resultResources;
        String verificationString = "v";
        Verification expectedVerification = Verification.VERIFY;
        Verification resultVerification;

        expectedPath.put(null, "/a/b");
        expectedPath.put("h", "c/d");

        expectedTime.set(Calendar.YEAR, 2009);
View Full Code Here

        System.out.println("putVerificationDifference()");

        JobDescription instance = new JobDescription();
        Map<String,String> map = new HashMap<String, String>();
        String key = getPrivateField(instance, "VERIFICATION");
        Verification old = Verification.NONE;
        Verification expected = Verification.VERIFY;

        callPrivateMethod(instance, "putVerificationDifference", new Class[] { Map.class, Verification.class, Verification.class }, new Object[] { map, old, expected });
        assertEquals("The putVerificationDifference() method did not put the correct entry into the map", "v", map.get(key));

        map.clear();
View Full Code Here

        System.out.println("parseVerification()");

        JobDescription instance = new JobDescription();
        String value = "e";
        Object result = callPrivateMethod(instance, "parseVerification", new Class[]{ String.class }, new Object[]{ value });
        Verification expResult = Verification.ERROR;

        assertEquals("The parseVerification() method did not parse the value correctly", expResult, result);

        value = null;
        result = callPrivateMethod(instance, "parseVerification", new Class[]{ String.class }, new Object[]{ value });
View Full Code Here

TOP

Related Classes of com.sun.grid.jsv.JobDescription.Verification

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.