package user.common.nexio.test;\r
\r
-import java.io.FileInputStream;\r
-import java.lang.invoke.MethodHandles;\r
-import java.net.URL;\r
-import java.util.Properties;\r
+import java.util.Iterator;\r
\r
import org.junit.BeforeClass;\r
import org.junit.Test;\r
\r
import user.commons.nexio.NexioDataMiner;\r
+import user.commons.nexio.api.Clip;\r
import user.commons.nexio.api.Controller;\r
\r
public class NexioDataMinerTest {\r
// Logger.getRootLogger().setLevel(LOG_LEVEL);\r
\r
//Kornyezeti valtozok betoltese\r
- Properties properties = new Properties();\r
- URL srcLocation = MethodHandles.lookup().lookupClass().getProtectionDomain().getCodeSource().getLocation();\r
- URL location = new URL(srcLocation, "../../-configuration/mediacube-dev.properties");\r
- properties.load(new FileInputStream(location.toURI().getPath().toString()));\r
- System.getProperties().putAll(properties);\r
+ // Properties properties = new Properties();\r
+ // URL srcLocation = MethodHandles.lookup().lookupClass().getProtectionDomain().getCodeSource().getLocation();\r
+ // URL location = new URL(srcLocation, "../../-configuration/mediacube-dev.properties");\r
+ // properties.load(new FileInputStream(location.toURI().getPath().toString()));\r
+ // System.getProperties().putAll(properties);\r
}\r
\r
public static String longToStr(long b) {\r
\r
private NexioDataMiner sut;\r
\r
+ @Test\r
+ public void quickInit() throws Exception {\r
+ Controller c = new Controller("10.10.1.55");\r
+ c.connect();\r
+ Iterator<Clip> clipsIter = c.getMediabase().getClips();\r
+ int i = 100;\r
+ while (clipsIter.hasNext() && i > 0) {\r
+ System.out.println(clipsIter.next().getId());\r
+ i--;\r
+ }\r
+ c.disconnect();\r
+ //c.getMediabase().getProtocol().setDescription("%0000205", "VALAMI");\r
+ }\r
+\r
@Test\r
public void reset() {\r
sut = new NexioDataMiner();\r
Controller c = new Controller("10.10.1.56");\r
c.connect();\r
c.getMediabase().getProtocol().setDescription("%0000205", "VALAMI");\r
+\r
}\r
\r
@Test\r