Skip to content

Update Milestone entity and filters to comply with TestRail 5.3 #59

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>3.5.1</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
<source>1.9</source>
<target>1.9</target>
</configuration>
</plugin>
<plugin>
Expand Down
24 changes: 23 additions & 1 deletion src/main/java/com/rmn/testrail/entity/Milestone.java
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
package com.rmn.testrail.entity;

import org.codehaus.jackson.annotate.JsonIgnoreProperties;
import org.codehaus.jackson.annotate.JsonProperty;

/**
* @author jsteigel
*/
@JsonIgnoreProperties(ignoreUnknown = true)
public class Milestone extends BaseEntity {
@JsonProperty("id")
private Integer id;
Expand Down Expand Up @@ -45,4 +47,24 @@ public class Milestone extends BaseEntity {
private Integer projectId;
public Integer getProjectId() { return projectId; }
public void setProjectId(Integer projectId) { this.projectId = projectId; }
}

@JsonProperty("start_on")
private String startOn;
public String getStartOn() { return startOn; }
public void setStartOn(String startOn) { this.startOn = startOn; }

@JsonProperty("started_on")
private String startedOn;
public String getStartedOn() { return startedOn; }
public void setStartedOn(String startedOn) { this.startedOn = startedOn; }

@JsonProperty("is_started")
private String isStarted;
public String getIsStarted() { return isStarted; }
public void setIsStarted(String isStarted) { this.isStarted = isStarted; }

@JsonProperty("parent_id")
private String parentId;
public String getParentId() { return parentId; }
public void setParentId(String parentId) { this.parentId = parentId; }
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
*/
public enum GetMilestonesFilter implements ApiFilter {
//Request filter for get_milestones
IS_COMPLETED("is_completed");
IS_COMPLETED("is_completed"),
IS_STARTED("is_started");

private String filter;
GetMilestonesFilter(String filter) { this.filter = filter; }
Expand Down