Package edu.stanford.bmir.protege.web.shared.project

Examples of edu.stanford.bmir.protege.web.shared.project.ProjectId


        new ProjectEntityCrudKitSettings(mock(ProjectId.class), null);
    }

    @Test
    public void getProjectIdShouldReturnValueEqualToProjectIdSuppliedInConstructor() {
        ProjectId projectId = mock(ProjectId.class);
        ProjectEntityCrudKitSettings settings = new ProjectEntityCrudKitSettings(projectId, mock(EntityCrudKitSettings.class));
        assertEquals(projectId, settings.getProjectId());
    }
View Full Code Here


        assertEquals(entityCrudKitSettings, settings.getSettings());
    }

    @Test
    public void hashCodeShouldBeEqualForSameProjectIdAndSettings() {
        ProjectId projectId = mock(ProjectId.class);
        EntityCrudKitSettings<?> settings = mock(EntityCrudKitSettings.class);
        ProjectEntityCrudKitSettings settingsA = new ProjectEntityCrudKitSettings(projectId, settings);
        ProjectEntityCrudKitSettings settingsB = new ProjectEntityCrudKitSettings(projectId, settings);
        assertEquals(settingsA.hashCode(), settingsB.hashCode());
    }
View Full Code Here

        assertEquals(settingsA.hashCode(), settingsB.hashCode());
    }

    @Test
    public void equalsShouldReturnTrueForEqualProjectIdAndEqualSettings() {
        ProjectId projectId = mock(ProjectId.class);
        EntityCrudKitSettings<?> settings = mock(EntityCrudKitSettings.class);
        ProjectEntityCrudKitSettings settingsA = new ProjectEntityCrudKitSettings(projectId, settings);
        ProjectEntityCrudKitSettings settingsB = new ProjectEntityCrudKitSettings(projectId, settings);
        assertEquals(settingsA, settingsB);
    }
View Full Code Here

TOP

Related Classes of edu.stanford.bmir.protege.web.shared.project.ProjectId

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.