1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package test.de.smartics.properties.spi.config.support;
17
18 import org.junit.experimental.categories.Category;
19 import org.junit.experimental.theories.DataPoint;
20
21 import de.smartics.properties.api.config.domain.key.ApplicationId;
22 import de.smartics.properties.api.config.domain.key.ConfigurationKey;
23 import de.smartics.properties.api.config.domain.key.EnvironmentId;
24 import de.smartics.properties.api.core.domain.PropertyDescriptorRegistry;
25 import de.smartics.properties.impl.config.domain.key.envapp.EnvAppConfigurationKey;
26 import de.smartics.properties.spi.config.support.AbstractConfigurationProperties;
27 import de.smartics.properties.spi.core.registry.InMemoryPropertyDescriptorRegistry;
28 import de.smartics.testdoc.annotations.Uut;
29 import de.smartics.testdoc.categories.type.ObjectBasics;
30 import de.smartics.util.test.theories.SerializationTheory;
31
32
33
34
35 @Category(ObjectBasics.class)
36 @Uut(type = AbstractConfigurationProperties.class)
37 public class AbstractConfigurationPropertiesSerializableTest extends
38 SerializationTheory
39 {
40 public static final EnvironmentId ENV = new EnvironmentId("test");
41
42 public static final ApplicationId APP = new ApplicationId("group",
43 "artifactId", "1.0");
44
45 public static final ConfigurationKey<?> KEY = new EnvAppConfigurationKey(ENV,
46 APP);
47
48 public static final PropertyDescriptorRegistry REGISTRY =
49 new InMemoryPropertyDescriptorRegistry();
50
51 @DataPoint
52 public static final AbstractConfigurationProperties DEFAULT =
53 new DummyConfigurationProperties(KEY, REGISTRY);
54 }