mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-08 14:51:49 +00:00
125603 rmunteanu: Merged 5.1.1 (5.1.1) to 5.1.N (5.1.2) 125484 slanglois: MNT-16155 Update source headers - remove old Copyrights from Java and JSP dource files git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@125781 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
54 lines
1.2 KiB
Java
54 lines
1.2 KiB
Java
package org.alfresco.util.schemacomp.model;
|
|
|
|
import static org.mockito.Mockito.verify;
|
|
|
|
import org.alfresco.test_category.BaseSpringTestsCategory;
|
|
import org.alfresco.test_category.OwnJVMTestsCategory;
|
|
import org.junit.Before;
|
|
import org.junit.Test;
|
|
import org.junit.experimental.categories.Category;
|
|
|
|
/**
|
|
* Tests for the Sequence class.
|
|
* @author Matt Ward
|
|
*/
|
|
@Category(BaseSpringTestsCategory.class)
|
|
public class SequenceTest extends DbObjectTestBase<Sequence>
|
|
{
|
|
private Sequence thisSequence;
|
|
private Sequence thatSequence;
|
|
|
|
@Before
|
|
public void setUp()
|
|
{
|
|
thisSequence = new Sequence(null, "this_sequence");
|
|
thatSequence = new Sequence(null, "that_sequence");
|
|
}
|
|
|
|
@Test
|
|
public void acceptVisitor()
|
|
{
|
|
thisSequence.accept(visitor);
|
|
|
|
verify(visitor).visit(thisSequence);
|
|
}
|
|
|
|
@Override
|
|
protected Sequence getThisObject()
|
|
{
|
|
return thisSequence;
|
|
}
|
|
|
|
@Override
|
|
protected Sequence getThatObject()
|
|
{
|
|
return thatSequence;
|
|
}
|
|
|
|
@Override
|
|
protected void doDiffTests()
|
|
{
|
|
// Nothing extra to diff.
|
|
}
|
|
}
|