KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > axis2 > storage > impl > AxisFileStorageTest


1 package org.apache.axis2.storage.impl;
2
3 import java.io.File JavaDoc;
4 import java.io.Serializable JavaDoc;
5
6 /*
7  * Copyright 2004,2005 The Apache Software Foundation.
8  *
9  * Licensed under the Apache License, Version 2.0 (the "License");
10  * you may not use this file except in compliance with the License.
11  * You may obtain a copy of the License at
12  *
13  * http://www.apache.org/licenses/LICENSE-2.0
14  *
15  * Unless required by applicable law or agreed to in writing, software
16  * distributed under the License is distributed on an "AS IS" BASIS,
17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18  * See the License for the specific language governing permissions and
19  * limitations under the License.
20  *
21  *
22  */

23 public class AxisFileStorageTest extends AbstractStorageTest {
24
25     protected void setUp() throws Exception JavaDoc {
26         File JavaDoc file = new File JavaDoc("temp.properties");
27         storage = new AxisFileStorage(file);
28         testValueObject = new TestBean("me",25);
29     }
30
31
32
33     private class TestBean implements Serializable JavaDoc{
34         private String JavaDoc name;
35         private int age;
36
37         public TestBean(String JavaDoc name, int age) {
38             this.name = name;
39             this.age = age;
40         }
41
42         public String JavaDoc getName() {
43             return name;
44         }
45
46         public void setName(String JavaDoc name) {
47             this.name = name;
48         }
49
50         public int getAge() {
51             return age;
52         }
53
54         public void setAge(int age) {
55             this.age = age;
56         }
57
58     }
59 }
60
Popular Tags