/*****************************************************************************
 ** Copyright (c) 2010 - 2012 Ushahidi Inc
 ** All rights reserved
 ** Contact: team@ushahidi.com
 ** Website: http://www.ushahidi.com
 **
 ** GNU Lesser General Public License Usage
 ** This file may be used under the terms of the GNU Lesser
 ** General Public License version 3 as published by the Free Software
 ** Foundation and appearing in the file LICENSE.LGPL included in the
 ** packaging of this file. Please review the following information to
 ** ensure the GNU Lesser General Public License version 3 requirements
 ** will be met: http://www.gnu.org/licenses/lgpl.html.
 **
 **
 ** If you have questions regarding the use of this file, please contact
 ** Ushahidi developers at team@ushahidi.com.
 **
 *****************************************************************************/
package com.crowdmap.java.sdk.service;


import org.junit.Test;

/**
 * 
 */
public class MediaServiceTest extends BaseServiceTest {

	/**
	 * Test method for {@link com.crowdmap.java.sdk.service.MediaService#getMedia()}.
	 */
	@Test
	public void testGetMedia() {
		fail("Not yet implemented");
	}

	/**
	 * Test method for {@link com.crowdmap.java.sdk.service.MediaService#getMedia(java.lang.String)}.
	 */
	@Test
	public void testGetMediaString() {
		fail("Not yet implemented");
	}

}

@@ -928,244 +928,701 @@
 nit.
-Test;%0A%0A/**%0A * %0A */%0Apublic class MediaServiceTest extends BaseServiceTest %7B%0A%0A%09/**%0A%09 * Test method for %7B@link com.crowdmap.java.sdk.service.MediaService#getMedia()%7D.%0A%09 */%0A%09@Test%0A%09public void testGetMedia() %7B%0A%09%09fail(%22Not yet implemented%22);
+After;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0Aimport com.crowdmap.java.sdk.json.MediaJson;%0A%0A/**%0A * %0A */%0Apublic class MediaServiceTest extends BaseServiceTest %7B%0A%0A%09private MediaService mediaService;%0A%09@Before%0A%09public void setUp() throws Exception %7B%0A%09%09super.setUp();%0A%09%09mediaService = new MediaService(client);%0A%09%7D%0A%0A%09@After%0A%09public void tearDown() throws Exception %7B%0A%09%09super.tearDown();%0A%09%09mediaService = null;%0A%09%7D%0A%09%0A%09/**%0A%09 * Test method for %7B@link com.crowdmap.java.sdk.service.MediaService#getMedia()%7D.%0A%09 */%0A%09@Test%0A%09public void testGetMedia() %7B%0A%09%09MediaJson mediaJson = mediaService.getMedia();%0A%09%09System.out.println(mediaJson.status);%0A%09%09assertNotNull(%22Media cannot be null %22, mediaJson);%0A%09%09
 %0A%09%7D%0A
@@ -1780,34 +1780,162 @@
 %7B%0A%09%09
-fail(%22Not yet implemented%22
+MediaJson mediaJson = mediaService.getMedia(String.valueOf(1));%0A%09%09System.out.println(mediaJson.status);%0A%09%09assertNotNull(%22Media cannot be null %22, mediaJson
 );%0A%09

Add media service test case