1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package test.de.smartics.properties.spi.core.metadata;
17
18 import help.de.smartics.properties.core.PropertiesContextBuilder;
19 import help.de.smartics.properties.core.PropertyKeyBuilder;
20
21 import java.lang.reflect.Method;
22
23 import org.junit.experimental.categories.Category;
24 import org.junit.experimental.theories.DataPoint;
25
26 import de.smartics.properties.spi.core.metadata.MetaInfDocumentMetaDataProxy;
27 import de.smartics.testdoc.annotations.Uut;
28 import de.smartics.testdoc.categories.type.ObjectBasics;
29 import de.smartics.util.test.theories.SerializationTheory;
30
31
32
33
34 @Category(ObjectBasics.class)
35 @Uut(type = MetaInfDocumentMetaDataProxy.class)
36 public class MetaInfDocumentMetaDataProxySerializableTest extends
37 SerializationTheory
38 {
39 private static final Method METHOD;
40
41 static
42 {
43 try
44 {
45 METHOD = String.class.getMethod("toString", new Class<?>[0]);
46 }
47 catch (final Exception e)
48 {
49 throw new IllegalStateException("Cannot find method for test.", e);
50 }
51 }
52
53 @DataPoint
54 public static final MetaInfDocumentMetaDataProxy NO_ARGS =
55 new MetaInfDocumentMetaDataProxy(PropertyKeyBuilder.defaultPropertyKey(),
56 PropertiesContextBuilder.defaultPropertiesContext(), METHOD);
57 }