Ignore:
Timestamp:
08/29/19 17:09:32 (5 years ago)
Author:
bart
Message:

Small fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • exampleparties/timedependentparty/src/test/java/geniusweb/exampleparties/timedependentparty/TimeDependentPartyTest.java

    r2 r3  
    2727import com.fasterxml.jackson.databind.ObjectMapper;
    2828
     29import geniusweb.actions.Accept;
    2930import geniusweb.actions.Action;
    3031import geniusweb.actions.EndNegotiation;
     
    146147        }
    147148
    148 //      @Test
    149 //      public void testAgentAccepts() {
    150 //              party.connect(connection);
    151 //              party.notifyChange(settings);
    152 //
    153 //              Bid bid = findBestBid();
    154 //              party.notifyChange(new ActionDone(new Offer(otherparty, bid)));
    155 //              party.notifyChange(new YourTurn());
    156 //              assertEquals(1, connection.getActions().size());
    157 //              assertTrue(connection.getActions().get(0) instanceof Accept);
    158 //
    159 //      }
     149        @Test
     150        public void testAgentAccepts() {
     151                party.connect(connection);
     152                party.notifyChange(settings);
     153
     154                Bid bid = findBestBid();
     155                party.notifyChange(new ActionDone(new Offer(otherparty, bid)));
     156                party.notifyChange(new YourTurn());
     157                assertEquals(1, connection.getActions().size());
     158                assertTrue(connection.getActions().get(0) instanceof Accept);
     159
     160        }
    160161
    161162        @Test
Note: See TracChangeset for help on using the changeset viewer.