Package org.evolizer.versioncontrol.cvs.importer.parser.helper_entities

Examples of org.evolizer.versioncontrol.cvs.importer.parser.helper_entities.SymbolicName


                       
            assertTrue(revisions1.contains(entry1));
            assertTrue(revisions1.contains(entry2));
           
            List<SymbolicName> symbolicNames1 = currentLogEntry.getSymbolicNames();
            assertTrue(symbolicNames1.contains(new SymbolicName("v20040427", "1.2")));
            assertTrue(symbolicNames1.contains(new SymbolicName("v20040420", "1.2")));
           
            pass = SECOND;
            break;
        case SECOND:
            //Check if the ordinary fields are filled correctly:
            assertEquals(
                    "/home/eclipse/org.eclipse.compare/compare/org/eclipse/compare/internal/merge/MergeMessages.java",
                    currentLogEntry.getRcsFile());
            assertEquals(
                    "compare/org/eclipse/compare/internal/merge/MergeMessages.java",
                    currentLogEntry.getWorkingFile());
            assertEquals("1.2", currentLogEntry.getHead());
            assertNull(currentLogEntry.getBranch());
          
            //Check if the collections are filled correctly:
            assertEquals(4, currentLogEntry.getTotalRevisions());
            assertEquals(4, currentLogEntry.getSelectedRevisions());
            assertEquals(7, currentLogEntry.getSymbolicNames().size());
           
            RevisionEntry entry3 = buildRevisionEntry1OfLogEntry2();
            RevisionEntry entry4 = buildRevisionEntry("1.2","2004/04/18 18:13:56","jetter","Exp","Rage against the Machine.",24,94);
            RevisionEntry entry5 = buildRevisionEntry("1.1.2.1","2004/04/18 19:13:50","someone","dead","tryed something",94,0);
            RevisionEntry entry6 = buildRevisionEntry("1.1.4.1","2004/04/18 19:23:56","tree","Exp","tryed something else",14,44);
            List<RevisionEntry> revisions2 = currentLogEntry.getRevisionEntries();
            assertTrue(revisions2.contains(entry3));
            assertTrue(revisions2.contains(entry4));
            assertTrue(revisions2.contains(entry5));
            assertTrue(revisions2.contains(entry6));
           
            List<SymbolicName> symbolicNames2 = currentLogEntry.getSymbolicNames();
            assertTrue(symbolicNames2.contains(new SymbolicName("v20040503", "1.1")));
            assertTrue(symbolicNames2.contains(new SymbolicName("v20040427", "1.1")));
            assertTrue(symbolicNames2.contains(new SymbolicName("v20040420", "1.1")));
            assertTrue(symbolicNames2.contains(new SymbolicName("Another_Branch_of_a_tree","1.2.0.4")));
            assertTrue(symbolicNames2.contains(new SymbolicName("Root_Another_Branch_of_a_tree","1.2")));
            assertTrue(symbolicNames2.contains(new SymbolicName("Branch_of_a_tree","1.2.0.2")));
            assertTrue(symbolicNames2.contains(new SymbolicName("Root_Branch_of_a_tree","1.2")));
           
            pass = THIRD;
            break;
        case THIRD:
            //Check if the ordinary fields are filled correctly:
            assertEquals(
                    "/home/eclipse/org.eclipse.compare/compare/org/eclipse/compare/internal/merge/MergeMessages.properties",
                    currentLogEntry.getRcsFile());
            assertEquals(
                    "compare/org/eclipse/compare/internal/merge/MergeMessages.properties",
                    currentLogEntry.getWorkingFile());
            assertEquals("1.3", currentLogEntry.getHead());
            assertNull(currentLogEntry.getBranch());
           
            //Check if the collections are filled correctly:
            assertEquals(5, currentLogEntry.getTotalRevisions());
            assertEquals(5, currentLogEntry.getSelectedRevisions());
            assertEquals(5, currentLogEntry.getSymbolicNames().size());
           
            RevisionEntry entry7 = buildRevisionEntry1OfLogEntry3();
            RevisionEntry entry8 = buildRevisionEntry2OfLogEntry3();
            RevisionEntry entry9 = buildRevisionEntry3OfLogEntry3();
            RevisionEntry entry10 = buildRevisionEntry("1.2.2.2","2005/03/15 18:54:22","petrov","Exp","We like to move it, move it...We like to move it, move it! Move it!\nLets start again!",25,85);
            RevisionEntry entry11 = buildRevisionEntry("1.2.2.1","2005/03/16 19:54:22","baum","Exp","Geh leveln!",65,83);
            List<RevisionEntry> revisions3 = currentLogEntry.getRevisionEntries();
            assertTrue(revisions3.contains(entry7));
            assertTrue(revisions3.contains(entry8));
            assertTrue(revisions3.contains(entry9));
            assertTrue(revisions3.contains(entry10));
            assertTrue(revisions3.contains(entry11));
           
            List<SymbolicName> symbolicNames3 = currentLogEntry.getSymbolicNames();
            assertTrue(symbolicNames3.contains(new SymbolicName("v20040503", "1.3")));
            assertTrue(symbolicNames3.contains(new SymbolicName("v20040427", "1.2")));
            assertTrue(symbolicNames3.contains(new SymbolicName("v20040420", "1.1")));
            assertTrue(symbolicNames3.contains(new SymbolicName("Branch_of_a_tree", "1.2.0.2")));
            assertTrue(symbolicNames3.contains(new SymbolicName("Root_Branch_of_a_tree","1.2")));
            break;           
        default:
            fail("Invalid test.");
        }
        assertEquals(currentLogEntry.getSelectedRevisions(), currentLogEntry
View Full Code Here

TOP

Related Classes of org.evolizer.versioncontrol.cvs.importer.parser.helper_entities.SymbolicName

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.