Adding interfaces in documentation
[aai/sparky-be.git] / src / test / java / org / onap / aai / sparky / synchronizer / SyncControllerServiceTest.java
1 package org.onap.aai.sparky.synchronizer;
2
3 import org.junit.Before;
4 import org.junit.Test;
5 import org.onap.aai.sparky.sync.SyncControllerRegistry;
6 import org.onap.aai.sparky.sync.SyncControllerService;
7
8 public class SyncControllerServiceTest {
9
10   private TestSyncController alpha;
11   private SyncControllerService syncService;
12   private SyncControllerRegistry syncControllerRegistry;
13   
14   @Before
15   public void init() {
16     alpha = new TestSyncController("alpha");
17     syncControllerRegistry = new SyncControllerRegistry();
18     syncService = new SyncControllerService(syncControllerRegistry, 5,5);
19
20   }
21
22   @Test
23   public void validateControllerRegistration() {
24      
25     syncControllerRegistry.registerSyncController( alpha );
26
27     syncService.startSync();
28     
29     syncService.shutdown();
30
31   }
32   
33   
34 }