git-tfs-id: [http://tfs.userrendszerhaz.hu:8080/tfs/DefaultCollection]$/MediaCube...
authorSweidan Omar <TFS\sweidan.omar>
Fri, 21 Jan 2022 02:10:56 +0000 (02:10 +0000)
committerSweidan Omar <TFS\sweidan.omar>
Fri, 21 Jan 2022 02:10:56 +0000 (02:10 +0000)
server/hu.user.mediacube.executors.tests/src/hu/user/mediacube/executors/tests/Support.java

index cb1d0e225c94a05e78973e800122fc57a57ab5a4..037a3a3e18656aaa25ded7a3b73f20fe59102b43 100644 (file)
@@ -176,7 +176,7 @@ public class Support {
        // return;\r
        // Path status = Paths.get(mediaFilePath.getParent().toString(), ".STATUS",\r
        // mediaFile.getName() + ".json");\r
-       // if (!status.toFile().exists()) {\r
+       // if (!Files.exists(status)) {\r
        // System.out.println("Nincs JSON: " + mediaFile.getAbsolutePath());\r
        // }\r
        //\r
@@ -208,9 +208,10 @@ public class Support {
 \r
        private void rescue_archive(RescueNEXIOMaterials processor, String clipName, long duration) throws Exception {\r
                /*\r
-               int nexioPort, String nexioUserName, String nexioPassword, String archiveFtp, String archiveUserName, String archivePassword,\r
-               int nexioKillDateDays, String nexioAgency, IItemManager manager\r
-               */\r
+                * int nexioPort, String nexioUserName, String nexioPassword, String archiveFtp,\r
+                * String archiveUserName, String archivePassword, int nexioKillDateDays, String\r
+                * nexioAgency, IItemManager manager\r
+                */\r
 \r
                RundownArchive ra = processor.processRundow(clipName, duration);\r
                if (ra != null) {\r
@@ -389,7 +390,6 @@ public class Support {
 \r
        }\r
 \r
-       \r
        public int getClipDuration(String name) throws Exception {\r
                int duration = 0;\r
                Controller controller = new Controller("10.10.1.55");\r
@@ -398,10 +398,10 @@ public class Support {
                try {\r
                        Xid xid = new Xid(name);\r
                        Clip clip = mediabase.getClip(xid);\r
-                       \r
+\r
                        if (clip != null)\r
                                duration = clip.getDuration();\r
-                       //System.out.println(name + " duration: " + duration);\r
+                       // System.out.println(name + " duration: " + duration);\r
                } catch (Exception e) {\r
                        System.err.println(e.getMessage());\r
                } finally {\r
@@ -409,7 +409,7 @@ public class Support {
                }\r
                return duration;\r
        }\r
-       \r
+\r
        @Test\r
        public void test_check_archived_rundownstories() throws Exception {\r
                OctopusAPI octopus = new OctopusAPI();\r
@@ -451,15 +451,14 @@ public class Support {
                                for (BasicDBObject mos : mosObjects) {\r
                                        String mosId = mos.getString(IOctopusAPI.OBJ_ID);\r
                                        if (archived.contains(mosId)) {\r
-                                               //System.out.println(mosId);\r
+                                               // System.out.println(mosId);\r
                                        } else {\r
                                                int duration = getClipDuration(mosId);\r
-                                               \r
+\r
                                                if (duration > 1)\r
                                                        System.out.println("Not archived " + mosId + ", duration " + duration);\r
-                                               else\r
-                                                       if (duration != 1)\r
-                                                               System.out.println("Missing " + mosId);\r
+                                               else if (duration != 1)\r
+                                                       System.out.println("Missing " + mosId);\r
                                        }\r
                                }\r
 \r