@@ -0,0 +1,2576 @@
+package org.rmatil.sync.test.model;%0A%0Aimport org.junit.BeforeClass;%0Aimport org.junit.Test;%0Aimport org.rmatil.sync.core.model.ApplicationConfig;%0Aimport org.rmatil.sync.core.model.RemoteClientLocation;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0A%0Aimport static org.junit.Assert.assertEquals;%0A%0Apublic class ApplicationConfigTest %7B%0A%0A    private static ApplicationConfig    applicationConfig;%0A    private static RemoteClientLocation remoteClientLocation;%0A    private static List%3CString%3E         ignorePatterns;%0A%0A    @BeforeClass%0A    public static void setUp()%0A            throws Exception %7B%0A%0A        ignorePatterns = new ArrayList%3C%3E();%0A%0A        remoteClientLocation = new RemoteClientLocation(%0A                %22123.456.78.90%22,%0A                false,%0A                4003%0A        );%0A%0A        applicationConfig = new ApplicationConfig(%0A                %22user%22,%0A                %22pass%22,%0A                %22salt%22,%0A                0,%0A                0,%0A                0,%0A                0,%0A                4003,%0A                %22~/.ssh/rsa_id.pub%22,%0A                %22~/.ssh/rsa_id%22,%0A                remoteClientLocation,%0A                ignorePatterns%0A        );%0A    %7D%0A%0A    @Test%0A    public void test() %7B%0A        assertEquals(%22user should be equal%22, %22user%22, applicationConfig.getUserName());%0A        assertEquals(%22pass should be equal%22, %22pass%22, applicationConfig.getPassword());%0A        assertEquals(%22salt should be equal%22, %22salt%22, applicationConfig.getSalt());%0A        assertEquals(%22CacheTTl should be equal%22, 0, applicationConfig.getCacheTtl());%0A        assertEquals(%22PeerDiscoveryTimeout should be equal%22, 0, applicationConfig.getPeerDiscoveryTimeout());%0A        assertEquals(%22PeerBootstrapTimeout should be equal%22, 0, applicationConfig.getPeerBootstrapTimeout());%0A        assertEquals(%22ShutdownAnnounceTimeout should be equal%22, 0, applicationConfig.getShutdownAnnounceTimeout());%0A        assertEquals(%22DefaultPort should be equal%22, 4003, applicationConfig.getDefaultPort());%0A        assertEquals(%22PublicKeyPath should be equal%22, %22~/.ssh/rsa_id.pub%22, applicationConfig.getPublicKeyPath());%0A        assertEquals(%22PrivateKeyPath should be equal%22, %22~/.ssh/rsa_id%22, applicationConfig.getPrivateKeyPath());%0A        assertEquals(%22DefaultBootstrapLocation should be equal%22, %22~/.ssh/rsa_id.pub%22, applicationConfig.getPublicKeyPath());%0A        assertEquals(%22RemoteClientLocation should be equal%22, remoteClientLocation, applicationConfig.getDefaultBootstrapLocation());%0A        assertEquals(%22IgnorePatterns should be equal%22, ignorePatterns, applicationConfig.getIgnorePatterns());%0A    %7D%0A%0A%0A%7D

Add test for ApplicationConfig