PageRenderTime 43ms CodeModel.GetById 15ms RepoModel.GetById 0ms app.codeStats 1ms

/src/test/java/org/jinstagram/entity/users/feed/MediaFeedDataTest.java

http://github.com/sachin-handiekar/jInstagram
Java | 1095 lines | 728 code | 101 blank | 266 comment | 0 complexity | 49026967eaef31c4c160df8597372fda MD5 | raw file
  1. package org.jinstagram.entity.users.feed;
  2. import static org.junit.Assert.assertEquals;
  3. import static org.junit.Assert.assertNotNull;
  4. import java.util.ArrayList;
  5. import java.util.List;
  6. import org.jinstagram.entity.common.Caption;
  7. import org.jinstagram.entity.common.Comments;
  8. import org.jinstagram.entity.common.Images;
  9. import org.jinstagram.entity.common.Likes;
  10. import org.jinstagram.entity.common.Location;
  11. import org.jinstagram.entity.common.User;
  12. import org.jinstagram.entity.common.UsersInPhoto;
  13. import org.jinstagram.entity.common.Videos;
  14. import org.junit.Test;
  15. /**
  16. * The class <code>MediaFeedDataTest</code> contains tests for the class
  17. * <code>{@link MediaFeedData}</code>.
  18. */
  19. public class MediaFeedDataTest {
  20. /**
  21. * Run the MediaFeedData() constructor test.
  22. *
  23. *
  24. */
  25. @Test
  26. public void testMediaFeedData_1() throws Exception {
  27. MediaFeedData result = new MediaFeedData();
  28. assertNotNull(result);
  29. // add additional test code here
  30. }
  31. /**
  32. * Run the Caption getCaption() method test.
  33. *
  34. * @throws Exception
  35. *
  36. *
  37. */
  38. @Test
  39. public void testGetCaption_1() throws Exception {
  40. MediaFeedData fixture = new MediaFeedData();
  41. fixture.setId("");
  42. fixture.setCreatedTime("");
  43. fixture.setVideos(new Videos());
  44. fixture.setCaption(new Caption());
  45. fixture.setUser(new User());
  46. fixture.setImageFilter("");
  47. fixture.setImages(new Images());
  48. fixture.setType("");
  49. fixture.setTags(new ArrayList<String>());
  50. fixture.setLink("");
  51. fixture.setUserHasLiked(true);
  52. fixture.setUsersInPhotoList(new ArrayList<UsersInPhoto>());
  53. fixture.setComments(new Comments());
  54. fixture.setLocation(new Location());
  55. fixture.setLikes(new Likes());
  56. Caption result = fixture.getCaption();
  57. // add additional test code here
  58. assertNotNull(result);
  59. assertEquals("Caption [createdTime=null, from=null, id=null, text=null]", result.toString());
  60. assertEquals(null, result.getId());
  61. assertEquals(null, result.getFrom());
  62. assertEquals(null, result.getText());
  63. assertEquals(null, result.getCreatedTime());
  64. }
  65. /**
  66. * Run the Comments getComments() method test.
  67. *
  68. * @throws Exception
  69. *
  70. *
  71. */
  72. @Test
  73. public void testGetComments_1() throws Exception {
  74. MediaFeedData fixture = new MediaFeedData();
  75. fixture.setId("");
  76. fixture.setCreatedTime("");
  77. fixture.setVideos(new Videos());
  78. fixture.setCaption(new Caption());
  79. fixture.setUser(new User());
  80. fixture.setImageFilter("");
  81. fixture.setImages(new Images());
  82. fixture.setType("");
  83. fixture.setTags(new ArrayList<String>());
  84. fixture.setLink("");
  85. fixture.setUserHasLiked(true);
  86. fixture.setUsersInPhotoList(new ArrayList<UsersInPhoto>());
  87. fixture.setComments(new Comments());
  88. fixture.setLocation(new Location());
  89. fixture.setLikes(new Likes());
  90. Comments result = fixture.getComments();
  91. // add additional test code here
  92. assertNotNull(result);
  93. assertEquals("Comments [comments=null, count=0]", result.toString());
  94. assertEquals(0, result.getCount());
  95. assertEquals(null, result.getComments());
  96. }
  97. /**
  98. * Run the String getCreatedTime() method test.
  99. *
  100. * @throws Exception
  101. *
  102. *
  103. */
  104. @Test
  105. public void testGetCreatedTime_1() throws Exception {
  106. MediaFeedData fixture = new MediaFeedData();
  107. fixture.setId("");
  108. fixture.setCreatedTime("");
  109. fixture.setVideos(new Videos());
  110. fixture.setCaption(new Caption());
  111. fixture.setUser(new User());
  112. fixture.setImageFilter("");
  113. fixture.setImages(new Images());
  114. fixture.setType("");
  115. fixture.setTags(new ArrayList<String>());
  116. fixture.setLink("");
  117. fixture.setUserHasLiked(true);
  118. fixture.setUsersInPhotoList(new ArrayList<UsersInPhoto>());
  119. fixture.setComments(new Comments());
  120. fixture.setLocation(new Location());
  121. fixture.setLikes(new Likes());
  122. String result = fixture.getCreatedTime();
  123. // add additional test code here
  124. assertEquals("", result);
  125. }
  126. /**
  127. * Run the String getId() method test.
  128. *
  129. * @throws Exception
  130. *
  131. *
  132. */
  133. @Test
  134. public void testGetId_1() throws Exception {
  135. MediaFeedData fixture = new MediaFeedData();
  136. fixture.setId("");
  137. fixture.setCreatedTime("");
  138. fixture.setVideos(new Videos());
  139. fixture.setCaption(new Caption());
  140. fixture.setUser(new User());
  141. fixture.setImageFilter("");
  142. fixture.setImages(new Images());
  143. fixture.setType("");
  144. fixture.setTags(new ArrayList<String>());
  145. fixture.setLink("");
  146. fixture.setUserHasLiked(true);
  147. fixture.setUsersInPhotoList(new ArrayList<UsersInPhoto>());
  148. fixture.setComments(new Comments());
  149. fixture.setLocation(new Location());
  150. fixture.setLikes(new Likes());
  151. String result = fixture.getId();
  152. // add additional test code here
  153. assertEquals("", result);
  154. }
  155. /**
  156. * Run the String getImageFilter() method test.
  157. *
  158. * @throws Exception
  159. *
  160. *
  161. */
  162. @Test
  163. public void testGetImageFilter_1() throws Exception {
  164. MediaFeedData fixture = new MediaFeedData();
  165. fixture.setId("");
  166. fixture.setCreatedTime("");
  167. fixture.setVideos(new Videos());
  168. fixture.setCaption(new Caption());
  169. fixture.setUser(new User());
  170. fixture.setImageFilter("");
  171. fixture.setImages(new Images());
  172. fixture.setType("");
  173. fixture.setTags(new ArrayList<String>());
  174. fixture.setLink("");
  175. fixture.setUserHasLiked(true);
  176. fixture.setUsersInPhotoList(new ArrayList<UsersInPhoto>());
  177. fixture.setComments(new Comments());
  178. fixture.setLocation(new Location());
  179. fixture.setLikes(new Likes());
  180. String result = fixture.getImageFilter();
  181. // add additional test code here
  182. assertEquals("", result);
  183. }
  184. /**
  185. * Run the Images getImages() method test.
  186. *
  187. * @throws Exception
  188. *
  189. *
  190. */
  191. @Test
  192. public void testGetImages_1() throws Exception {
  193. MediaFeedData fixture = new MediaFeedData();
  194. fixture.setId("");
  195. fixture.setCreatedTime("");
  196. fixture.setVideos(new Videos());
  197. fixture.setCaption(new Caption());
  198. fixture.setUser(new User());
  199. fixture.setImageFilter("");
  200. fixture.setImages(new Images());
  201. fixture.setType("");
  202. fixture.setTags(new ArrayList<String>());
  203. fixture.setLink("");
  204. fixture.setUserHasLiked(true);
  205. fixture.setUsersInPhotoList(new ArrayList<UsersInPhoto>());
  206. fixture.setComments(new Comments());
  207. fixture.setLocation(new Location());
  208. fixture.setLikes(new Likes());
  209. Images result = fixture.getImages();
  210. // add additional test code here
  211. assertNotNull(result);
  212. assertEquals("Images [lowResolution=null, standardResolution=null, thumbnail=null]", result.toString());
  213. assertEquals(null, result.getStandardResolution());
  214. assertEquals(null, result.getThumbnail());
  215. assertEquals(null, result.getLowResolution());
  216. }
  217. /**
  218. * Run the Likes getLikes() method test.
  219. *
  220. * @throws Exception
  221. *
  222. *
  223. */
  224. @Test
  225. public void testGetLikes_1() throws Exception {
  226. MediaFeedData fixture = new MediaFeedData();
  227. fixture.setId("");
  228. fixture.setCreatedTime("");
  229. fixture.setVideos(new Videos());
  230. fixture.setCaption(new Caption());
  231. fixture.setUser(new User());
  232. fixture.setImageFilter("");
  233. fixture.setImages(new Images());
  234. fixture.setType("");
  235. fixture.setTags(new ArrayList<String>());
  236. fixture.setLink("");
  237. fixture.setUserHasLiked(true);
  238. fixture.setUsersInPhotoList(new ArrayList<UsersInPhoto>());
  239. fixture.setComments(new Comments());
  240. fixture.setLocation(new Location());
  241. fixture.setLikes(new Likes());
  242. Likes result = fixture.getLikes();
  243. // add additional test code here
  244. assertNotNull(result);
  245. assertEquals("Likes [count=0, likesUserList=null]", result.toString());
  246. assertEquals(0, result.getCount());
  247. assertEquals(null, result.getLikesUserList());
  248. }
  249. /**
  250. * Run the String getLink() method test.
  251. *
  252. * @throws Exception
  253. *
  254. *
  255. */
  256. @Test
  257. public void testGetLink_1() throws Exception {
  258. MediaFeedData fixture = new MediaFeedData();
  259. fixture.setId("");
  260. fixture.setCreatedTime("");
  261. fixture.setVideos(new Videos());
  262. fixture.setCaption(new Caption());
  263. fixture.setUser(new User());
  264. fixture.setImageFilter("");
  265. fixture.setImages(new Images());
  266. fixture.setType("");
  267. fixture.setTags(new ArrayList<String>());
  268. fixture.setLink("");
  269. fixture.setUserHasLiked(true);
  270. fixture.setUsersInPhotoList(new ArrayList<UsersInPhoto>());
  271. fixture.setComments(new Comments());
  272. fixture.setLocation(new Location());
  273. fixture.setLikes(new Likes());
  274. String result = fixture.getLink();
  275. // add additional test code here
  276. assertEquals("", result);
  277. }
  278. /**
  279. * Run the Location getLocation() method test.
  280. *
  281. * @throws Exception
  282. *
  283. *
  284. */
  285. @Test
  286. public void testGetLocation_1() throws Exception {
  287. MediaFeedData fixture = new MediaFeedData();
  288. fixture.setId("");
  289. fixture.setCreatedTime("");
  290. fixture.setVideos(new Videos());
  291. fixture.setCaption(new Caption());
  292. fixture.setUser(new User());
  293. fixture.setImageFilter("");
  294. fixture.setImages(new Images());
  295. fixture.setType("");
  296. fixture.setTags(new ArrayList<String>());
  297. fixture.setLink("");
  298. fixture.setUserHasLiked(true);
  299. fixture.setUsersInPhotoList(new ArrayList<UsersInPhoto>());
  300. fixture.setComments(new Comments());
  301. fixture.setLocation(new Location());
  302. fixture.setLikes(new Likes());
  303. Location result = fixture.getLocation();
  304. // add additional test code here
  305. assertNotNull(result);
  306. assertEquals("Location [id=null, name=null, latitude=0.0, longitude=0.0]", result.toString());
  307. assertEquals(null, result.getName());
  308. assertEquals(null, result.getId());
  309. assertEquals(0.0, result.getLongitude(), 1.0);
  310. assertEquals(0.0, result.getLatitude(), 1.0);
  311. }
  312. /**
  313. * Run the List<String> getTags() method test.
  314. *
  315. * @throws Exception
  316. *
  317. *
  318. */
  319. @Test
  320. public void testGetTags_1() throws Exception {
  321. MediaFeedData fixture = new MediaFeedData();
  322. fixture.setId("");
  323. fixture.setCreatedTime("");
  324. fixture.setVideos(new Videos());
  325. fixture.setCaption(new Caption());
  326. fixture.setUser(new User());
  327. fixture.setImageFilter("");
  328. fixture.setImages(new Images());
  329. fixture.setType("");
  330. fixture.setTags(new ArrayList<String>());
  331. fixture.setLink("");
  332. fixture.setUserHasLiked(true);
  333. fixture.setUsersInPhotoList(new ArrayList<UsersInPhoto>());
  334. fixture.setComments(new Comments());
  335. fixture.setLocation(new Location());
  336. fixture.setLikes(new Likes());
  337. List<String> result = fixture.getTags();
  338. // add additional test code here
  339. assertNotNull(result);
  340. assertEquals(0, result.size());
  341. }
  342. /**
  343. * Run the String getType() method test.
  344. *
  345. * @throws Exception
  346. *
  347. *
  348. */
  349. @Test
  350. public void testGetType_1() throws Exception {
  351. MediaFeedData fixture = new MediaFeedData();
  352. fixture.setId("");
  353. fixture.setCreatedTime("");
  354. fixture.setVideos(new Videos());
  355. fixture.setCaption(new Caption());
  356. fixture.setUser(new User());
  357. fixture.setImageFilter("");
  358. fixture.setImages(new Images());
  359. fixture.setType("");
  360. fixture.setTags(new ArrayList<String>());
  361. fixture.setLink("");
  362. fixture.setUserHasLiked(true);
  363. fixture.setUsersInPhotoList(new ArrayList<UsersInPhoto>());
  364. fixture.setComments(new Comments());
  365. fixture.setLocation(new Location());
  366. fixture.setLikes(new Likes());
  367. String result = fixture.getType();
  368. // add additional test code here
  369. assertEquals("", result);
  370. }
  371. /**
  372. * Run the User getUser() method test.
  373. *
  374. * @throws Exception
  375. *
  376. *
  377. */
  378. @Test
  379. public void testGetUser_1() throws Exception {
  380. MediaFeedData fixture = new MediaFeedData();
  381. fixture.setId("");
  382. fixture.setCreatedTime("");
  383. fixture.setVideos(new Videos());
  384. fixture.setCaption(new Caption());
  385. fixture.setUser(new User());
  386. fixture.setImageFilter("");
  387. fixture.setImages(new Images());
  388. fixture.setType("");
  389. fixture.setTags(new ArrayList<String>());
  390. fixture.setLink("");
  391. fixture.setUserHasLiked(true);
  392. fixture.setUsersInPhotoList(new ArrayList<UsersInPhoto>());
  393. fixture.setComments(new Comments());
  394. fixture.setLocation(new Location());
  395. fixture.setLikes(new Likes());
  396. User result = fixture.getUser();
  397. // add additional test code here
  398. assertNotNull(result);
  399. assertEquals("User [bio=null, fullName=null, id=null, profilePictureUrl=null, userName=null, websiteUrl=null]",
  400. result.toString());
  401. assertEquals(null, result.getId());
  402. assertEquals(null, result.getFullName());
  403. assertEquals(null, result.getProfilePictureUrl());
  404. assertEquals(null, result.getUserName());
  405. assertEquals(null, result.getBio());
  406. assertEquals(null, result.getWebsiteUrl());
  407. }
  408. /**
  409. * Run the List<UsersInPhoto> getUsersInPhotoList() method test.
  410. *
  411. * @throws Exception
  412. *
  413. *
  414. */
  415. @Test
  416. public void testGetUsersInPhotoList_1() throws Exception {
  417. MediaFeedData fixture = new MediaFeedData();
  418. fixture.setId("");
  419. fixture.setCreatedTime("");
  420. fixture.setVideos(new Videos());
  421. fixture.setCaption(new Caption());
  422. fixture.setUser(new User());
  423. fixture.setImageFilter("");
  424. fixture.setImages(new Images());
  425. fixture.setType("");
  426. fixture.setTags(new ArrayList<String>());
  427. fixture.setLink("");
  428. fixture.setUserHasLiked(true);
  429. fixture.setUsersInPhotoList(new ArrayList<UsersInPhoto>());
  430. fixture.setComments(new Comments());
  431. fixture.setLocation(new Location());
  432. fixture.setLikes(new Likes());
  433. List<UsersInPhoto> result = fixture.getUsersInPhotoList();
  434. // add additional test code here
  435. assertNotNull(result);
  436. assertEquals(0, result.size());
  437. }
  438. /**
  439. * Run the Videos getVideos() method test.
  440. *
  441. * @throws Exception
  442. *
  443. *
  444. */
  445. @Test
  446. public void testGetVideos_1() throws Exception {
  447. MediaFeedData fixture = new MediaFeedData();
  448. fixture.setId("");
  449. fixture.setCreatedTime("");
  450. fixture.setVideos(new Videos());
  451. fixture.setCaption(new Caption());
  452. fixture.setUser(new User());
  453. fixture.setImageFilter("");
  454. fixture.setImages(new Images());
  455. fixture.setType("");
  456. fixture.setTags(new ArrayList<String>());
  457. fixture.setLink("");
  458. fixture.setUserHasLiked(true);
  459. fixture.setUsersInPhotoList(new ArrayList<UsersInPhoto>());
  460. fixture.setComments(new Comments());
  461. fixture.setLocation(new Location());
  462. fixture.setLikes(new Likes());
  463. Videos result = fixture.getVideos();
  464. // add additional test code here
  465. assertNotNull(result);
  466. assertEquals("Videos [lowResolution=null, standardResolution=null]", result.toString());
  467. assertEquals(null, result.getStandardResolution());
  468. assertEquals(null, result.getLowResolution());
  469. }
  470. /**
  471. * Run the boolean isUserHasLiked() method test.
  472. *
  473. * @throws Exception
  474. *
  475. *
  476. */
  477. @Test
  478. public void testIsUserHasLiked_1() throws Exception {
  479. MediaFeedData fixture = new MediaFeedData();
  480. fixture.setId("");
  481. fixture.setCreatedTime("");
  482. fixture.setVideos(new Videos());
  483. fixture.setCaption(new Caption());
  484. fixture.setUser(new User());
  485. fixture.setImageFilter("");
  486. fixture.setImages(new Images());
  487. fixture.setType("");
  488. fixture.setTags(new ArrayList<String>());
  489. fixture.setLink("");
  490. fixture.setUserHasLiked(true);
  491. fixture.setUsersInPhotoList(new ArrayList<UsersInPhoto>());
  492. fixture.setComments(new Comments());
  493. fixture.setLocation(new Location());
  494. fixture.setLikes(new Likes());
  495. boolean result = fixture.isUserHasLiked();
  496. // add additional test code here
  497. assertEquals(true, result);
  498. }
  499. /**
  500. * Run the boolean isUserHasLiked() method test.
  501. *
  502. * @throws Exception
  503. *
  504. *
  505. */
  506. @Test
  507. public void testIsUserHasLiked_2() throws Exception {
  508. MediaFeedData fixture = new MediaFeedData();
  509. fixture.setId("");
  510. fixture.setCreatedTime("");
  511. fixture.setVideos(new Videos());
  512. fixture.setCaption(new Caption());
  513. fixture.setUser(new User());
  514. fixture.setImageFilter("");
  515. fixture.setImages(new Images());
  516. fixture.setType("");
  517. fixture.setTags(new ArrayList<String>());
  518. fixture.setLink("");
  519. fixture.setUserHasLiked(false);
  520. fixture.setUsersInPhotoList(new ArrayList<UsersInPhoto>());
  521. fixture.setComments(new Comments());
  522. fixture.setLocation(new Location());
  523. fixture.setLikes(new Likes());
  524. boolean result = fixture.isUserHasLiked();
  525. // add additional test code here
  526. assertEquals(false, result);
  527. }
  528. /**
  529. * Run the void setCaption(Caption) method test.
  530. *
  531. * @throws Exception
  532. *
  533. *
  534. */
  535. @Test
  536. public void testSetCaption_1() throws Exception {
  537. MediaFeedData fixture = new MediaFeedData();
  538. fixture.setId("");
  539. fixture.setCreatedTime("");
  540. fixture.setVideos(new Videos());
  541. fixture.setCaption(new Caption());
  542. fixture.setUser(new User());
  543. fixture.setImageFilter("");
  544. fixture.setImages(new Images());
  545. fixture.setType("");
  546. fixture.setTags(new ArrayList<String>());
  547. fixture.setLink("");
  548. fixture.setUserHasLiked(true);
  549. fixture.setUsersInPhotoList(new ArrayList<UsersInPhoto>());
  550. fixture.setComments(new Comments());
  551. fixture.setLocation(new Location());
  552. fixture.setLikes(new Likes());
  553. Caption caption = new Caption();
  554. fixture.setCaption(caption);
  555. // add additional test code here
  556. }
  557. /**
  558. * Run the void setComments(Comments) method test.
  559. *
  560. * @throws Exception
  561. *
  562. *
  563. */
  564. @Test
  565. public void testSetComments_1() throws Exception {
  566. MediaFeedData fixture = new MediaFeedData();
  567. fixture.setId("");
  568. fixture.setCreatedTime("");
  569. fixture.setVideos(new Videos());
  570. fixture.setCaption(new Caption());
  571. fixture.setUser(new User());
  572. fixture.setImageFilter("");
  573. fixture.setImages(new Images());
  574. fixture.setType("");
  575. fixture.setTags(new ArrayList<String>());
  576. fixture.setLink("");
  577. fixture.setUserHasLiked(true);
  578. fixture.setUsersInPhotoList(new ArrayList<UsersInPhoto>());
  579. fixture.setComments(new Comments());
  580. fixture.setLocation(new Location());
  581. fixture.setLikes(new Likes());
  582. Comments comments = new Comments();
  583. fixture.setComments(comments);
  584. // add additional test code here
  585. }
  586. /**
  587. * Run the void setCreatedTime(String) method test.
  588. *
  589. * @throws Exception
  590. *
  591. *
  592. */
  593. @Test
  594. public void testSetCreatedTime_1() throws Exception {
  595. MediaFeedData fixture = new MediaFeedData();
  596. fixture.setId("");
  597. fixture.setCreatedTime("");
  598. fixture.setVideos(new Videos());
  599. fixture.setCaption(new Caption());
  600. fixture.setUser(new User());
  601. fixture.setImageFilter("");
  602. fixture.setImages(new Images());
  603. fixture.setType("");
  604. fixture.setTags(new ArrayList<String>());
  605. fixture.setLink("");
  606. fixture.setUserHasLiked(true);
  607. fixture.setUsersInPhotoList(new ArrayList<UsersInPhoto>());
  608. fixture.setComments(new Comments());
  609. fixture.setLocation(new Location());
  610. fixture.setLikes(new Likes());
  611. String createdTime = "";
  612. fixture.setCreatedTime(createdTime);
  613. // add additional test code here
  614. }
  615. /**
  616. * Run the void setId(String) method test.
  617. *
  618. * @throws Exception
  619. *
  620. *
  621. */
  622. @Test
  623. public void testSetId_1() throws Exception {
  624. MediaFeedData fixture = new MediaFeedData();
  625. fixture.setId("");
  626. fixture.setCreatedTime("");
  627. fixture.setVideos(new Videos());
  628. fixture.setCaption(new Caption());
  629. fixture.setUser(new User());
  630. fixture.setImageFilter("");
  631. fixture.setImages(new Images());
  632. fixture.setType("");
  633. fixture.setTags(new ArrayList<String>());
  634. fixture.setLink("");
  635. fixture.setUserHasLiked(true);
  636. fixture.setUsersInPhotoList(new ArrayList<UsersInPhoto>());
  637. fixture.setComments(new Comments());
  638. fixture.setLocation(new Location());
  639. fixture.setLikes(new Likes());
  640. String id = "";
  641. fixture.setId(id);
  642. // add additional test code here
  643. }
  644. /**
  645. * Run the void setImageFilter(String) method test.
  646. *
  647. * @throws Exception
  648. *
  649. *
  650. */
  651. @Test
  652. public void testSetImageFilter_1() throws Exception {
  653. MediaFeedData fixture = new MediaFeedData();
  654. fixture.setId("");
  655. fixture.setCreatedTime("");
  656. fixture.setVideos(new Videos());
  657. fixture.setCaption(new Caption());
  658. fixture.setUser(new User());
  659. fixture.setImageFilter("");
  660. fixture.setImages(new Images());
  661. fixture.setType("");
  662. fixture.setTags(new ArrayList<String>());
  663. fixture.setLink("");
  664. fixture.setUserHasLiked(true);
  665. fixture.setUsersInPhotoList(new ArrayList<UsersInPhoto>());
  666. fixture.setComments(new Comments());
  667. fixture.setLocation(new Location());
  668. fixture.setLikes(new Likes());
  669. String imageFilter = "";
  670. fixture.setImageFilter(imageFilter);
  671. // add additional test code here
  672. }
  673. /**
  674. * Run the void setImages(Images) method test.
  675. *
  676. * @throws Exception
  677. *
  678. *
  679. */
  680. @Test
  681. public void testSetImages_1() throws Exception {
  682. MediaFeedData fixture = new MediaFeedData();
  683. fixture.setId("");
  684. fixture.setCreatedTime("");
  685. fixture.setVideos(new Videos());
  686. fixture.setCaption(new Caption());
  687. fixture.setUser(new User());
  688. fixture.setImageFilter("");
  689. fixture.setImages(new Images());
  690. fixture.setType("");
  691. fixture.setTags(new ArrayList<String>());
  692. fixture.setLink("");
  693. fixture.setUserHasLiked(true);
  694. fixture.setUsersInPhotoList(new ArrayList<UsersInPhoto>());
  695. fixture.setComments(new Comments());
  696. fixture.setLocation(new Location());
  697. fixture.setLikes(new Likes());
  698. Images images = new Images();
  699. fixture.setImages(images);
  700. // add additional test code here
  701. }
  702. /**
  703. * Run the void setLikes(Likes) method test.
  704. *
  705. * @throws Exception
  706. *
  707. *
  708. */
  709. @Test
  710. public void testSetLikes_1() throws Exception {
  711. MediaFeedData fixture = new MediaFeedData();
  712. fixture.setId("");
  713. fixture.setCreatedTime("");
  714. fixture.setVideos(new Videos());
  715. fixture.setCaption(new Caption());
  716. fixture.setUser(new User());
  717. fixture.setImageFilter("");
  718. fixture.setImages(new Images());
  719. fixture.setType("");
  720. fixture.setTags(new ArrayList<String>());
  721. fixture.setLink("");
  722. fixture.setUserHasLiked(true);
  723. fixture.setUsersInPhotoList(new ArrayList<UsersInPhoto>());
  724. fixture.setComments(new Comments());
  725. fixture.setLocation(new Location());
  726. fixture.setLikes(new Likes());
  727. Likes likes = new Likes();
  728. fixture.setLikes(likes);
  729. // add additional test code here
  730. }
  731. /**
  732. * Run the void setLink(String) method test.
  733. *
  734. * @throws Exception
  735. *
  736. *
  737. */
  738. @Test
  739. public void testSetLink_1() throws Exception {
  740. MediaFeedData fixture = new MediaFeedData();
  741. fixture.setId("");
  742. fixture.setCreatedTime("");
  743. fixture.setVideos(new Videos());
  744. fixture.setCaption(new Caption());
  745. fixture.setUser(new User());
  746. fixture.setImageFilter("");
  747. fixture.setImages(new Images());
  748. fixture.setType("");
  749. fixture.setTags(new ArrayList<String>());
  750. fixture.setLink("");
  751. fixture.setUserHasLiked(true);
  752. fixture.setUsersInPhotoList(new ArrayList<UsersInPhoto>());
  753. fixture.setComments(new Comments());
  754. fixture.setLocation(new Location());
  755. fixture.setLikes(new Likes());
  756. String link = "";
  757. fixture.setLink(link);
  758. // add additional test code here
  759. }
  760. /**
  761. * Run the void setLocation(Location) method test.
  762. *
  763. * @throws Exception
  764. *
  765. *
  766. */
  767. @Test
  768. public void testSetLocation_1() throws Exception {
  769. MediaFeedData fixture = new MediaFeedData();
  770. fixture.setId("");
  771. fixture.setCreatedTime("");
  772. fixture.setVideos(new Videos());
  773. fixture.setCaption(new Caption());
  774. fixture.setUser(new User());
  775. fixture.setImageFilter("");
  776. fixture.setImages(new Images());
  777. fixture.setType("");
  778. fixture.setTags(new ArrayList<String>());
  779. fixture.setLink("");
  780. fixture.setUserHasLiked(true);
  781. fixture.setUsersInPhotoList(new ArrayList<UsersInPhoto>());
  782. fixture.setComments(new Comments());
  783. fixture.setLocation(new Location());
  784. fixture.setLikes(new Likes());
  785. Location location = new Location();
  786. fixture.setLocation(location);
  787. // add additional test code here
  788. }
  789. /**
  790. * Run the void setTags(List<String>) method test.
  791. *
  792. * @throws Exception
  793. *
  794. *
  795. */
  796. @Test
  797. public void testSetTags_1() throws Exception {
  798. MediaFeedData fixture = new MediaFeedData();
  799. fixture.setId("");
  800. fixture.setCreatedTime("");
  801. fixture.setVideos(new Videos());
  802. fixture.setCaption(new Caption());
  803. fixture.setUser(new User());
  804. fixture.setImageFilter("");
  805. fixture.setImages(new Images());
  806. fixture.setType("");
  807. fixture.setTags(new ArrayList<String>());
  808. fixture.setLink("");
  809. fixture.setUserHasLiked(true);
  810. fixture.setUsersInPhotoList(new ArrayList<UsersInPhoto>());
  811. fixture.setComments(new Comments());
  812. fixture.setLocation(new Location());
  813. fixture.setLikes(new Likes());
  814. List<String> tags = new ArrayList<String>();
  815. fixture.setTags(tags);
  816. // add additional test code here
  817. }
  818. /**
  819. * Run the void setType(String) method test.
  820. *
  821. * @throws Exception
  822. *
  823. *
  824. */
  825. @Test
  826. public void testSetType_1() throws Exception {
  827. MediaFeedData fixture = new MediaFeedData();
  828. fixture.setId("");
  829. fixture.setCreatedTime("");
  830. fixture.setVideos(new Videos());
  831. fixture.setCaption(new Caption());
  832. fixture.setUser(new User());
  833. fixture.setImageFilter("");
  834. fixture.setImages(new Images());
  835. fixture.setType("");
  836. fixture.setTags(new ArrayList<String>());
  837. fixture.setLink("");
  838. fixture.setUserHasLiked(true);
  839. fixture.setUsersInPhotoList(new ArrayList<UsersInPhoto>());
  840. fixture.setComments(new Comments());
  841. fixture.setLocation(new Location());
  842. fixture.setLikes(new Likes());
  843. String type = "";
  844. fixture.setType(type);
  845. // add additional test code here
  846. }
  847. /**
  848. * Run the void setUser(User) method test.
  849. *
  850. * @throws Exception
  851. *
  852. *
  853. */
  854. @Test
  855. public void testSetUser_1() throws Exception {
  856. MediaFeedData fixture = new MediaFeedData();
  857. fixture.setId("");
  858. fixture.setCreatedTime("");
  859. fixture.setVideos(new Videos());
  860. fixture.setCaption(new Caption());
  861. fixture.setUser(new User());
  862. fixture.setImageFilter("");
  863. fixture.setImages(new Images());
  864. fixture.setType("");
  865. fixture.setTags(new ArrayList<String>());
  866. fixture.setLink("");
  867. fixture.setUserHasLiked(true);
  868. fixture.setUsersInPhotoList(new ArrayList<UsersInPhoto>());
  869. fixture.setComments(new Comments());
  870. fixture.setLocation(new Location());
  871. fixture.setLikes(new Likes());
  872. User user = new User();
  873. fixture.setUser(user);
  874. // add additional test code here
  875. }
  876. /**
  877. * Run the void setUserHasLiked(boolean) method test.
  878. *
  879. * @throws Exception
  880. *
  881. *
  882. */
  883. @Test
  884. public void testSetUserHasLiked_1() throws Exception {
  885. MediaFeedData fixture = new MediaFeedData();
  886. fixture.setId("");
  887. fixture.setCreatedTime("");
  888. fixture.setVideos(new Videos());
  889. fixture.setCaption(new Caption());
  890. fixture.setUser(new User());
  891. fixture.setImageFilter("");
  892. fixture.setImages(new Images());
  893. fixture.setType("");
  894. fixture.setTags(new ArrayList<String>());
  895. fixture.setLink("");
  896. fixture.setUserHasLiked(true);
  897. fixture.setUsersInPhotoList(new ArrayList<UsersInPhoto>());
  898. fixture.setComments(new Comments());
  899. fixture.setLocation(new Location());
  900. fixture.setLikes(new Likes());
  901. boolean userHasLiked = true;
  902. fixture.setUserHasLiked(userHasLiked);
  903. // add additional test code here
  904. }
  905. /**
  906. * Run the void setUsersInPhotoList(List<UsersInPhoto>) method test.
  907. *
  908. * @throws Exception
  909. *
  910. *
  911. */
  912. @Test
  913. public void testSetUsersInPhotoList_1() throws Exception {
  914. MediaFeedData fixture = new MediaFeedData();
  915. fixture.setId("");
  916. fixture.setCreatedTime("");
  917. fixture.setVideos(new Videos());
  918. fixture.setCaption(new Caption());
  919. fixture.setUser(new User());
  920. fixture.setImageFilter("");
  921. fixture.setImages(new Images());
  922. fixture.setType("");
  923. fixture.setTags(new ArrayList<String>());
  924. fixture.setLink("");
  925. fixture.setUserHasLiked(true);
  926. fixture.setUsersInPhotoList(new ArrayList<UsersInPhoto>());
  927. fixture.setComments(new Comments());
  928. fixture.setLocation(new Location());
  929. fixture.setLikes(new Likes());
  930. List<UsersInPhoto> usersInPhotoList = new ArrayList<UsersInPhoto>();
  931. fixture.setUsersInPhotoList(usersInPhotoList);
  932. // add additional test code here
  933. }
  934. /**
  935. * Run the void setVideos(Videos) method test.
  936. *
  937. * @throws Exception
  938. *
  939. *
  940. */
  941. @Test
  942. public void testSetVideos_1() throws Exception {
  943. MediaFeedData fixture = new MediaFeedData();
  944. fixture.setId("");
  945. fixture.setCreatedTime("");
  946. fixture.setVideos(new Videos());
  947. fixture.setCaption(new Caption());
  948. fixture.setUser(new User());
  949. fixture.setImageFilter("");
  950. fixture.setImages(new Images());
  951. fixture.setType("");
  952. fixture.setTags(new ArrayList<String>());
  953. fixture.setLink("");
  954. fixture.setUserHasLiked(true);
  955. fixture.setUsersInPhotoList(new ArrayList<UsersInPhoto>());
  956. fixture.setComments(new Comments());
  957. fixture.setLocation(new Location());
  958. fixture.setLikes(new Likes());
  959. Videos videos = new Videos();
  960. fixture.setVideos(videos);
  961. // add additional test code here
  962. }
  963. /**
  964. * Run the String toString() method test.
  965. *
  966. * @throws Exception
  967. *
  968. *
  969. */
  970. @Test
  971. public void testToString_1() throws Exception {
  972. MediaFeedData fixture = new MediaFeedData();
  973. fixture.setId("");
  974. fixture.setCreatedTime("");
  975. fixture.setVideos(new Videos());
  976. fixture.setCaption(new Caption());
  977. fixture.setUser(new User());
  978. fixture.setImageFilter("");
  979. fixture.setImages(new Images());
  980. fixture.setType("");
  981. fixture.setTags(new ArrayList<String>());
  982. fixture.setLink("");
  983. fixture.setUserHasLiked(true);
  984. fixture.setUsersInPhotoList(new ArrayList<UsersInPhoto>());
  985. fixture.setComments(new Comments());
  986. fixture.setLocation(new Location());
  987. fixture.setLikes(new Likes());
  988. String result = fixture.toString();
  989. // add additional test code here
  990. assertEquals(
  991. "MediaFeedData [caption=Caption [createdTime=null, from=null, id=null, text=null], comments=Comments [comments=null, count=0], createdTime=, id=, imageFilter=, images=Images [lowResolution=null, standardResolution=null, thumbnail=null], likes=Likes [count=0, likesUserList=null], link=, location=Location [id=null, name=null, latitude=0.0, longitude=0.0], tags=[], type=, user=User [bio=null, fullName=null, id=null, profilePictureUrl=null, userName=null, websiteUrl=null], userHasLiked=true, usersInPhoto=[]]",
  992. result);
  993. }
  994. }