configtool/com.nokia.S60CT.validation/tst/src/testCase/WAceessWarningTest.java
changeset 0 30eb2d538f02
equal deleted inserted replaced
-1:000000000000 0:30eb2d538f02
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 
       
    18 package testCase;
       
    19 
       
    20 import constraints.WAccessWarning;
       
    21 
       
    22 public class WAceessWarningTest extends AbstractConstraintTest {
       
    23 
       
    24 	@Override
       
    25 	protected Pair[] getAcceptedObjects() {
       
    26 		Pair[] pair = new Pair[]{
       
    27 			new Pair(new WriteCapaExistanceTest.WriteAccessMock("alwayspass"),"alwaysPass should be accepted"),
       
    28 			new Pair(new WriteCapaExistanceTest.WriteAccessMock("writedevicedata"),"writedevicedata should be accepted"),
       
    29 			new Pair(new WriteCapaExistanceTest.WriteAccessMock("writedevicedata,alwayspass"),"writedevicedata and alwayspass should be accepted"),
       
    30 			new Pair(new WriteCapaExistanceTest.WriteAccessMock("writedevicedata,smt"),"writedevicedata and smt should be accepted"),
       
    31 			new Pair(new WriteCapaExistanceTest.WriteAccessMock("smt,alwayspass"),"smt and alwayspass should be accepted"),
       
    32 		};
       
    33 		return pair;
       
    34 	}
       
    35 
       
    36 	@Override
       
    37 	protected Pair[] getRejectedObjects() {
       
    38 		Pair[] pair = new Pair[]{
       
    39 				new Pair(new WriteCapaExistanceTest.WriteAccessMock(null),"null should not be accepted"),
       
    40 				new Pair(new WriteCapaExistanceTest.WriteAccessMock("something"),"something should not be accepted"),
       
    41 			};
       
    42 			return pair;
       
    43 	}
       
    44 
       
    45 	@Override
       
    46 	protected void setUp() throws Exception {
       
    47 		constraint = new WAccessWarning();
       
    48 	}
       
    49 
       
    50 }