@@ -0,0 +1,1160 @@
+package org.computelab.config;%0A%0Aimport static org.junit.Assert.assertEquals;%0Aimport static org.junit.Assert.assertFalse;%0Aimport static org.junit.Assert.assertTrue;%0A%0Aimport org.junit.After;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0Apublic class SystemPropertyConfigTest %7B%0A%0A    @Before%0A    public void before() %7B%0A        System.setProperty(getKey(), %22123abc%22);%0A    %7D%0A%0A    @After%0A    public void after() %7B%0A        System.clearProperty(getKey());%0A    %7D%0A%0A    @Test%0A    public void testHas() %7B%0A        Config config = new SystemPropertyConfig(%22system-property-config%22);%0A        assertTrue(config.has(getKey()));%0A        assertFalse(config.has(getKey() + %22DoesNotExist%22));%0A    %7D%0A%0A    @Test%0A    public void testGet() %7B%0A        Config config = new SystemPropertyConfig(%22system-property-config%22);%0A        assertEquals(%22123abc%22, config.get(getKey()));%0A    %7D%0A%0A    @Test(expected = ConfigEntryMissingException.class)%0A    public void testGetMissingKey() %7B%0A        Config config = new SystemPropertyConfig(%22system-property-config%22);%0A        config.get(getKey() + %22DoesNotExist%22);%0A    %7D%0A%0A    private String getKey() %7B%0A        return getClass().getSimpleName();%0A    %7D%0A%7D%0A

Test SystemPropertyConfig