1<?xml version="1.0" encoding="utf-8"?>
2<!--
3 Copyright (C) 2008-2012  OMRON SOFTWARE Co., Ltd.
4
5 Licensed under the Apache License, Version 2.0 (the "License");
6 you may not use this file except in compliance with the License.
7 You may obtain a copy of the License at
8
9      http://www.apache.org/licenses/LICENSE-2.0
10
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS,
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and
15 limitations under the License.
16-->
17<OpenWnnEngine>
18	<!-- key testName is Unique -->
19
20	<!-- OpenWnnEngineEN -->
21	<!-- For int predict(ComposingText text, int minLen, int maxLen) -->
22	<!-- param = "target<null or empty or text or comma>,minLen,maxLen,text" -->
23	<key testName = "TestCase01_predict" targetClassName = "OpenWnnEngineEN"
24	     targetMethod = "predict" param = "null,0,-1," intRet = "0" isRet = "" strRet = ""/>
25
26	<key testName = "TestCase02_predict" targetClassName = "OpenWnnEngineEN"
27		 targetMethod = "predict" param = "empty,0,-1," intRet = "0" isRet ="" strRet = ""/>
28
29	<key testName = "TestCase03_predict" targetClassName = "OpenWnnEngineEN"
30		 targetMethod = "predict" param = "text,10,5,testCase03" intRet = "1" isRet ="" strRet = ""/>
31
32	<key testName = "TestCase04_predict" targetClassName = "OpenWnnEngineEN"
33		 targetMethod = "predict" param = "comma,10,5," intRet = "1" isRet ="" strRet = ""/>
34
35	<!-- For convert() -->
36	<key testName = "TestCase01_convert" targetClassName = "OpenWnnEngineEN"
37	     targetMethod = "convert" param = "convertTest" intRet = "0" isRet = "" strRet = ""/>
38
39	<!-- For searchDictionary() -->
40
41	<key testName = "TestCase01_searchDictionary" targetClassName = "OpenWnnEngineEN"
42	     targetMethod = "searchDictionary" param = "convertTest" intRet = "0" isRet = "" strRet = ""/>
43
44	<!-- For getNextCandidate() -->
45	<!-- WnnWord getNextCandidate() -->
46	<!-- before predict() call -->
47	<key testName = "TestCase01_getNextCandidate" targetClassName = "OpenWnnEngineEN"
48	     targetMethod = "getNextCandidate" param = "getNextCondi" intRet = "" isRet = "" strRet = "getNextCondi"/>
49
50	<!-- predict() not call. -->
51	<key testName = "TestCase02_getNextCandidate" targetClassName = "OpenWnnEngineEN"
52	     targetMethod = "getNextCandidate" param = "" intRet = "" isRet = "" strRet = ""/>
53
54	<!-- For learn() -->
55	<!-- boolean learn(WnnWord word) WnnWord(String candidate, String stroke, int frequency) -->
56	<!-- param = "candidate,stroke,frequency" -->
57	<key testName = "TestCase01_learn" targetClassName = "OpenWnnEngineEN"
58	     targetMethod = "learn" param = "learn,learn,0" intRet = "" isRet = "true" strRet = ""/>
59
60	<key testName = "TestCase02_learn" targetClassName = "OpenWnnEngineEN"
61	     targetMethod = "learn" param = "nolearn,nolearn,0" intRet = "" isRet = "true" strRet = ""/>
62
63	<!-- For addWord() -->
64	<!-- int addWord(WnnWord word) WnnWord(String candidate, String stroke, int frequency) -->
65	<!-- param = "candidate,stroke,frequency"-->
66	<key testName = "TestCase01_addWord" targetClassName = "OpenWnnEngineEN"
67	     targetMethod = "addWord" param = "addWordText,addWordText,0" intRet = "0" isRet = "" strRet = ""/>
68
69	<!-- For deleteWord() -->
70	<!-- boolean deleteWord(WnnWord word) WnnWord(String candidate, String stroke, int frequency) -->
71	<!-- param = "candidate,stroke,frequency"-->
72	<key testName = "TestCase01_deleteWord" targetClassName = "OpenWnnEngineEN"
73	     targetMethod = "deleteWord" param = "deleteWord,deleteWord,0" intRet = "" isRet = "false" strRet = ""/>
74
75	<!-- void setPreferences(SharedPreferences pref) -->
76	<key testName = "TestCase01_setPreferences" targetClassName = "OpenWnnEngineEN"
77	     targetMethod = "setPreferences" param = "" intRet = "" isRet = "" strRet = ""/>
78
79
80	<!-- OpenWnnEngineJAJP -->
81	<!-- For int predict(ComposingText text, int minLen, int maxLen) -->
82	<!-- param = "target<null or empty or text or comma>,minLen,maxLen,text" -->
83	<key testName = "TestCase01_predict" targetClassName = "OpenWnnEngineJAJP"
84	     targetMethod = "predict" param = "null,0,-1," intRet = "0" isRet = "" strRet = ""/>
85</OpenWnnEngine>
86