1. John McDonnell
  2. Blackout Rugby Java API

Commits

John McDonnell  committed 3f70150

Reverted changes to the MatchEvent bean and tests folloing on from getting confirmation about changes to the MatchEvent API output.

  • Participants
  • Parent commits 0d3617e
  • Branches master

Comments (0)

Files changed (2)

File src/main/java/org/jmcdonnell/blackoutrugby/beans/MatchEvent.java

View file
  • Ignore whitespace
  */
 package org.jmcdonnell.blackoutrugby.beans;
 
-import java.util.Map;
 import javax.xml.bind.annotation.XmlAccessType;
 import javax.xml.bind.annotation.XmlAccessorType;
 import javax.xml.bind.annotation.XmlElement;
     private Integer guestScore;
     private Integer index;
     private Integer half;
-    @XmlElement(name = "eventdata")
-    private Map<String, Object> eventData;
 
     public Long getId() {
         return id;
     }
 
     public Integer getPossession() {
-        return (Integer) getEventData().get("p");
+        return possession;
     }
 
     public Integer getActualTime() {
     }
 
     public Integer getHomeScore() {
-        return (Integer) getEventData().get("hs");
+        return homeScore;
     }
 
     public Integer getGuestScore() {
-        return (Integer) getEventData().get("gs");
+        return guestScore;
     }
 
     public Integer getIndex() {
     public Integer getHalf() {
         return half;
     }
-
-    public Map<String, Object> getEventData() {
-        return eventData;
-    }
-
-    public void setEventData(Map<String, Object> eventData) {
-        this.eventData = eventData;
-    }
 }

File src/test/java/org/jmcdonnell/blackoutrugby/requests/RequestManagerMatchEventTest.java

View file
  • Ignore whitespace
         assertNotNull(entitiesFromApi);
     }
     
-    //@Test
+    @Test
     public void testGetMultipleEventsByMatchId() throws BlackoutException
     {
         Long fixtureId = new Long(System.getProperty("match.saved.id"));