sysmodelmgr/com.symbian.smt.gui.unittest/src/com/symbian/smt/gui/unittest/PDS_test_helper.java
equal
deleted
inserted
replaced
|
1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 package com.symbian.smt.gui.unittest; |
|
17 |
|
18 import java.util.HashMap; |
|
19 import java.util.Map; |
|
20 |
|
21 import com.symbian.smt.gui.AbstractPersistentDataStore; |
|
22 import com.symbian.smt.gui.PersistentSettingsEnums; |
|
23 |
|
24 |
|
25 public class PDS_test_helper extends AbstractPersistentDataStore { |
|
26 |
|
27 Map<String, String> data = new HashMap<String, String>(); |
|
28 |
|
29 @Override |
|
30 public String read(PersistentSettingsEnums key) { |
|
31 String name = key.name(); |
|
32 |
|
33 return data.get(name).toString(); |
|
34 } |
|
35 |
|
36 @Override |
|
37 public void write(PersistentSettingsEnums key, String value) { |
|
38 data.put(key.toString(), value); |
|
39 } |
|
40 } |