package net.iaeste.iws.api.requests;

import junit.framework.TestCase;

/**
 * @author Kim Jensen / last $Author:$
 * @version $Revision:$ / $Date:$
 * @since 1.7
 */
public class FetchOfferRequestTest extends TestCase {
    public void testVerify() throws Exception {

    }

    public void testGetFetchType() throws Exception {

    }

    public void testGetOffers() throws Exception {

    }
}

@@ -1,73 +1,1149 @@
-package net.iaeste.iws.api.requests;%0A%0Aimport junit.framework.TestCase
+/*%0A * =============================================================================%0A * Copyright 1998-2012, IAESTE Internet Development Team. All rights reserved.%0A * -----------------------------------------------------------------------------%0A * Project: IntraWeb Services (iws-api) - net.iaeste.iws.api.requests.FetchOffersRequestTest%0A * -----------------------------------------------------------------------------%0A * This software is provided by the members of the IAESTE Internet Development%0A * Team (IDT) to IAESTE A.s.b.l. It is for internal use only and may not be%0A * redistributed. IAESTE A.s.b.l. is not permitted to sell this software.%0A *%0A * This software is provided %22as is%22; the IDT or individuals within the IDT%0A * cannot be held legally responsible for any problems the software may cause.%0A * =============================================================================%0A */%0A%0Apackage net.iaeste.iws.api.requests;%0A%0Aimport static org.hamcrest.CoreMatchers.is;%0Aimport static org.hamcrest.CoreMatchers.not;%0Aimport static org.hamcrest.CoreMatchers.nullValue;%0A%0Aimport org.junit.Assert;%0Aimport org.junit.Test;%0A%0Aimport java.util.ArrayList
 ;%0A%0A/
@@ -1160,18 +1160,21 @@
 hor 
-Kim Jensen
+Michal Knapik
  / l
@@ -1278,83 +1278,996 @@
 est 
-extends TestCase %7B%0A    public void testVerify() throws Exception %7B%0A
+%7B%0A    @Test%0A    public void testEmptyConstructor() %7B%0A        final FetchOffersRequest request = new FetchOffersRequest();%0A        Assert.assertThat(request, is(not(nullValue())));%0A        Assert.assertThat(request.getFetchType(), is(not(nullValue())));%0A        Assert.assertThat(request.getFetchType(), is(FetchOffersRequest.FetchType.ALL));%0A        Assert.assertThat(request.getOffers(), is(not(nullValue())));%0A        Assert.assertThat(request.getOffers().size(), is(0));%0A    %7D%0A%0A    @Test%0A    public void testConstructorEmptyList() %7B%0A        final FetchOffersRequest request = new FetchOffersRequest(new ArrayList%3CLong%3E(0));%0A        Assert.assertThat(request, is(not(nullValue())));%0A        Assert.assertThat(request.getFetchType(), is(not(nullValue())));%0A        Assert.assertThat(request.getFetchType(), is(FetchOffersRequest.FetchType.BY_ID));%0A        Assert.assertThat(request.getOffers(), is(not(nullValue())));%0A        Assert.assertThat(request.getOffers().size(), is(0));
 %0A    %7D%0A%0A
     
@@ -2254,32 +2254,42 @@
  is(0));%0A    %7D%0A%0A
+    @Test%0A
     public void 
@@ -2296,101 +2296,919 @@
 test
-GetFetchType() throws Exception %7B%0A%0A    %7D%0A%0A    public void testGetOffers() throws Exception %7B%0A
+ConstructorList() %7B%0A        final ArrayList%3CLong%3E offerIds = new ArrayList%3C%3E(0);%0A        offerIds.add(1L);%0A        offerIds.add(2L);%0A        final FetchOffersRequest request = new FetchOffersRequest(offerIds);%0A        Assert.assertThat(request, is(not(nullValue())));%0A        Assert.assertThat(request.getFetchType(), is(not(nullValue())));%0A        Assert.assertThat(request.getFetchType(), is(FetchOffersRequest.FetchType.BY_ID));%0A        Assert.assertThat(request.getOffers(), is(not(nullValue())));%0A        Assert.assertThat(request.getOffers().size(), is(offerIds.size()));%0A    %7D%0A%0A    @Test(expected = UnsupportedOperationException.class)%0A    public void testModifingOfferList() %7B%0A        final ArrayList%3CLong%3E offerIds = new ArrayList%3C%3E(0);%0A        offerIds.add(1L);%0A        offerIds.add(2L);%0A        final FetchOffersRequest request = new FetchOffersRequest(offerIds);%0A        request.getOffers().add(3L);
 %0A   

add FetchOfferRequest tests