Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Gayathri committed Aug 28, 2023
1 parent c55a339 commit ec68e4f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,10 @@ public void runCreatePatchTest() throws LegendSDLCServerException

public void runGetPatchTest() throws LegendSDLCServerException
{
String projectName = "PatchTestProjectOne";
String projectName = "PatchTestProjectThree";
String description = "A test project.";
String groupId = "org.finos.sdlc.test";
String artifactId = "testpatchprojone";
String artifactId = "testpatchprojthree";
List<String> tags = Lists.mutable.with("doe", "moffitt", AbstractGitLabServerApiTest.INTEGRATION_TEST_PROJECT_TAG);

Project createdProject = gitLabProjectApi.createProject(projectName, description, ProjectType.MANAGED, groupId, artifactId, tags);
Expand All @@ -94,7 +94,7 @@ public void runGetPatchTest() throws LegendSDLCServerException
Assert.assertEquals(projectId, patch.getProjectId());
Assert.assertEquals("0.0.2", patch.getPatchReleaseVersionId().toVersionIdString());

Patch returnedPatch = gitLabPatchApi.getPatch(projectId, version.getId());
Patch returnedPatch = gitLabPatchApi.getPatch(projectId, patch.getPatchReleaseVersionId());
Assert.assertNotNull(returnedPatch);
Assert.assertEquals(projectId, returnedPatch.getProjectId());
Assert.assertEquals("0.0.2", returnedPatch.getPatchReleaseVersionId().toVersionIdString());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ public abstract class Project
include = JsonTypeInfo.As.PROPERTY,
property = "jackson-type")
@JsonSubTypes({
@JsonSubTypes.Type(value = InMemoryWorkspace.class, name = "InMemoryWorkspace")})
@JsonSubTypes.Type(value = InMemoryWorkspace.class, name = "InMemoryWorkspace"),
@JsonSubTypes.Type(value = InMemoryWorkspace.class, name = "InMemoryReview$1")})
public abstract class Workspace
{

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ public class InMemoryWorkspace implements Workspace
private String currentRevisionId;
private String projectId;
private String workspaceId;
private DevelopmentStreamType sourceType;
private DevelopmentStream source;

@Inject
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ public void testGetPatch() throws HttpResponseException

Assert.assertEquals("1.0.1", patch.getPatchReleaseVersionId().toVersionIdString());
}

@Test
public void testGetAllPatches() throws HttpResponseException
{
Expand Down

0 comments on commit ec68e4f

Please sign in to comment.