From b9ccaf159f90ed35365404ec32250487ed27e8f7 Mon Sep 17 00:00:00 2001 From: Hammy Date: Sat, 3 Jul 2021 06:37:09 +0100 Subject: [PATCH] Create helper class to instantiate expected entities for tests --- src/test/java/me/goudham/util/TestEntity.java | 347 ++++++++++++++++++ 1 file changed, 347 insertions(+) create mode 100644 src/test/java/me/goudham/util/TestEntity.java diff --git a/src/test/java/me/goudham/util/TestEntity.java b/src/test/java/me/goudham/util/TestEntity.java new file mode 100644 index 0000000..968afeb --- /dev/null +++ b/src/test/java/me/goudham/util/TestEntity.java @@ -0,0 +1,347 @@ +package me.goudham.util; + +import me.goudham.domain.series.FilteredSeries; +import me.goudham.domain.series.Series; +import me.goudham.domain.user.Creator; +import me.goudham.domain.waifu.FilteredWaifu; +import me.goudham.domain.waifu.Waifu; + +import java.util.ArrayList; +import java.util.List; + +public class TestEntity { + public static Waifu getExpectedWaifu() { + Series series = new Series(); + series.setName("Monster Musume: Everyday Life with Monster Girls"); + series.setOriginalName(null); + series.setRomajiName(null); + series.setDescription("With his parents abroad, Kimihito Kurusu lived a quiet, unremarkable life alone until monster girls came crowding in! This alternate reality presents cutting-edge Japan, the first country to promote the integration of non-human species into society. After the incompetence of interspecies exchange coordinator Agent Smith leaves Kimihito as the homestay caretaker of a Lamia named Miia, the newly-minted \"Darling\" quickly attracts girls of various breeds, resulting in an ever-growing harem flush with eroticism and attraction.\r\n" + + "\r\n" + + "Unfortunately for him and the ladies, sexual interactions between species is forbidden by the Interspecies Exchange Act! The only loophole is through an experimental marriage provision. Kimihito's life becomes fraught with an abundance of creature-specific caveats and sensitive interspecies law as the passionate, affectionate, and lusty women hound his every move, seeking his romantic and sexual affections. With new species often appearing and events materializing out of thin air, where Kimihito and his harem go is anyone's guess!\r\n" + + "\r\n" + + "[Written by MAL Rewrite]"); + series.setSlug("monster-musume-everyday-life-with-monster-girls"); + series.setReleaseDate(null); + series.setAiringEnd(null); + series.setAiringStart(null); + series.setEpisodeCount(12); + series.setDisplayPicture("https://thicc.mywaifulist.moe/series/201/29eb0d9393f2f281e2882b08d3b2af81577a3033a3544189b325b22f9659eba4.jpeg"); + series.setUrl(null); + series.setStudio(null); + series.setType(null); + series.setId(null); + + List appearances = new ArrayList<>(); + appearances.add(series); + + Creator creator = new Creator(); + creator.setId(1); + creator.setName("ReaverCelty"); + + Waifu waifu = new Waifu(); + waifu.setId(1); + waifu.setSlug("rachnera-arachnera-monster-musume-everyday-life-with-monster-girls"); + waifu.setCreator(creator); + waifu.setName("Rachnera Arachnera"); + waifu.setOriginalName("ラクネラ・アラクネラ"); + waifu.setRomajiName("Rakunera Arakunera"); + waifu.setDisplayPicture("https://thicc.mywaifulist.moe/waifus/1/5c1be30a7b7834faef76e4b4dd8a512030a0cd3437f6a5bcc75de1ac33908092_thumb.jpeg"); + waifu.setDescription("Rachnera Arachnera is an Arachne and the sixth girl to move in with Kimihito and fifth girl to officially do so. Due to their fear of her, her original host family had sold her off to Kasegi, who used her and her webbing to make money. This, along with his cruel behavior left her with a deep hatred for humans. This behaviour changed after she abducted Kurusu and found out that he was a decent person who didn't discriminate against non-humans. Since then, Rachnera has been flirting with Kurusu while facing her fellow monster girls in the house, especially Miia and Centorea Shianus who see her as their love rival for Kurusu.\n" + + "\n" + + "Rachnera has the body of a young woman with short lavender hair that covers the right side of her face. She has six pupil-less, monochromatic red eyes, and sharp and pointed teeth. Her most noticeable physical trait is the mass located at her humanoid buttocks which is that of a giant spider adorned with a large skull design on the back of its abdomen. She has black carapace covering her arms from the shoulders down, and long fingers with gauntlet-like plating on her hands that end in sharpened points. Her usual attire consists of a revealing halter top with shoulder-less sleeves, and black and gold loin cloth with a slightly-frilly white trim. Her outfits change more often than most of the other girls and are usually more revealing or mature.\n" + + "\n" + + "Most of Rachnera's personality seems to be determined by her bad experiences with humans. Because of this, she initially hated humans, and believed them all to be hypocrites. While she believed this by her outlook of Kimihito as well, she was shocked to find out his kindness was genuine. This changed her outlook significantly, though it did not completely change her. Nevertheless, Rachnera still retains at least some of her cynicism as evidenced by her conviction that Kimhito, as a man, would inevitably cheat on his home-stays. One of the biggest impacts that Rachnera's past has had on her is a deep-rooted hatred of dishonesty in any shape or form. No matter how ugly the truth is, Rachnera would still prefer it over pleasant lies. This is demonstrated when she managed to goad Cerea into admitting she hates her. Rachnera was actually happy with this, despite Cerea standing up for her to Miia earlier. Rachnera told Cerea that if she dislikes her then she should do so openly. One way to make her genuinely angry is to mock her history and motivations. Rachnera is extremely mischievous as evidenced when she gleefully traps her former host in her webbing after scolding her for not keeping her webs in one place . Likewise, she greatly enjoys provoking others, displaying an innate talent for saying the right thing at the right time to cause cracks in almost anyone's composure. In this respect, Miia and Centorea make very easy targets for her due to their mutual dislike for her and highly sensitive personalities. Rachnera also displays a pronounced sadistic streak given how she subjects Lilith to sexual torture and made members of her host family \"subs\" in her BDSM routines. . Notwithstanding her frightening appearance and unsettling \"hobbies\", Rachnera possesses a very sophisticated and seductive personality. Of all of Kimihito's tenants, she consistently displays the most confidence and self-awareness in her sex appeal when flirting with Kimihito (particularly when compared with Miia's suffocating displays of affection and Cerea's bashful prudishness). Likewise, Rachnera is the most licentious of the homestays as evidenced by her conscious attempts to sexually arouse Kimihito, along with her unabashed enjoyment of acts of (accidental) perversity on Kimihito's part . From what is shown, Rachnera greatly enjoys bondage, getting a great kick from tying her victims up in her own webbing, both sexually and non-sexually. However, dealing with both Papi and Suu in the others' absence proved to be too exhausting even for her. She is also revealed to be somewhat obsessive about perfecting her bondage technique, which annoys most of the other monster girls (except Suu, who cannot be bound, and Mero, who rather shamefully enjoys it) to varying degrees , though she seems to have exempted Kimihito from being webbed up in this fashion. However, she seems to include every monster girl who lives in Kimihito's home or is a possible rival as fair game, a fact that has Lala more than a little scared of her. She is implied to be somewhat lazy, and can frequently be seen slacking off. However, even despite her sinister traits, it is clear Rachnera's the most mature of all the home-stays, and can quickly discard her playful attitude and become very serious if the situation calls for it. Most notably, Papi and Suu consider Rachnera to be their favorite teacher in the household, even more than Kimihito himself, due to Rachnera being the most knowledgeable and skilled at teaching. Ironically, despite being built like a dangerous predator, Rachnera has great self-restraint, and Kimihito even noted that she's the only member of the household who has never genuinely harmed or endangered him, even by accident, which caused to her to become embarrassed. It is also shown that she cares deeply for Kimihito as when Lala said that Kimihito was going to die, she angrily bound her in thread and threatened her not to speak so offensively in front of her. Despite all this, according to Lilith, Rachnera's strong personality is merely a façade she puts up. Rachnera pretends to be uncaring, however she is afraid of being rejected again for her features, and that she is very self-conscious about her appearance. Rachnera's angry reaction implies that there is some truth to those words. In fact, when Rachnera gets intoxicated, she becomes much more emotional and honest about her true feelings."); + waifu.setWeight(82.0); + waifu.setHeight(198.0); + waifu.setBust(92.0); + waifu.setHip(87.0); + waifu.setWaist(55.0); + waifu.setBloodType(null); + waifu.setOrigin(null); + waifu.setAge(null); + waifu.setBirthdayMonth("June"); + waifu.setBirthdayDay(27); + waifu.setBirthdayYear(null); + waifu.setLikes(1282); + waifu.setTrash(212); + waifu.setUrl("https://www.mywaifulist.moe/waifu/rachnera-arachnera-monster-musume-everyday-life-with-monster-girls"); + waifu.setHusbando(false); + waifu.setNsfw(false); + waifu.setPopularityRank(173); + waifu.setLikeRank(159); + waifu.setTrashRank(244); + waifu.setAppearances(appearances); + waifu.setSeries(series); + + return waifu; + } + + public static List getBestWaifus() { + List bestWaifus = new ArrayList<>(); + + List appearances1 = new ArrayList<>(); + appearances1.add(createFilteredSeries("When They Cry", "when-they-cry", "https://www.mywaifulist.moe/series/when-they-cry")); + appearances1.add(createFilteredSeries("When They Cry (2020)", "when-they-cry-2020", "https://www.mywaifulist.moe/series/when-they-cry-2020")); + appearances1.add(createFilteredSeries("When They Cry - Sotsu", "when-they-cry-sotsu", "https://www.mywaifulist.moe/series/when-they-cry-sotsu")); + + bestWaifus.add(createFilteredWaifu( + appearances1, + "Rika is one of the main characters in Higurashi no Naku Koro ni Kai. She is...", + "https://thicc.mywaifulist.moe/waifus/730/4aa77bd6a64aff6504cd2f8e718040b72b9f010a4b8124968cc3f2872904b3bb_thumb.jpeg", + 730.0, + 373, + "Rika Furude", + "古手 梨花", + null, + null, + "rika-furude-when-they-cry", + 42, + "Waifu", + "https://www.mywaifulist.moe/waifu/rika-furude-when-they-cry" + ) + ); + + List appearances2 = new ArrayList<>(); + appearances2.add(createFilteredSeries("That Time I Got Reincarnated as a Slime", "that-time-i-got-reincarnated-as-a-slime", "https://www.mywaifulist.moe/series/that-time-i-got-reincarnated-as-a-slime")); + appearances2.add(createFilteredSeries("That Time I Got Reincarnated as a Slime OVA", "that-time-i-got-reincarnated-as-a-slime-ova", "https://www.mywaifulist.moe/series/that-time-i-got-reincarnated-as-a-slime-ova")); + appearances2.add(createFilteredSeries("That Time I Got Reincarnated as a Slime Season 2", "that-time-i-got-reincarnated-as-a-slime-season-2", "https://www.mywaifulist.moe/series/that-time-i-got-reincarnated-as-a-slime-season-2")); + appearances2.add(createFilteredSeries("That Time I Got Reincarnated as a Slime Season 2: Part II", "that-time-i-got-reincarnated-as-a-slime-season-2-part-ii", "https://www.mywaifulist.moe/series/that-time-i-got-reincarnated-as-a-slime-season-2-part-ii")); + appearances2.add(createFilteredSeries("The Slime Diaries: That Time I Got Reincarnated as a Slime", "the-slime-diaries-that-time-i-got-reincarnated-as-a-slime", "https://www.mywaifulist.moe/series/the-slime-diaries-that-time-i-got-reincarnated-as-a-slime")); + + bestWaifus.add(createFilteredWaifu( + appearances2, + "Shion is one of the third group of subordinates to be named by Rimuru, and...", + "https://thicc.mywaifulist.moe/waifus/7727/bfaed60aca345dcf1937fe4a395112c9748f9712cbad7e4d1ab95faca9480f31_thumb.jpeg", + 7727.0, + 727, + "Shion", + "シオン", + null, + null, + "shion-that-time-i-got-reincarnated-as-a-slime", + 70, + "Waifu", + "https://www.mywaifulist.moe/waifu/shion-that-time-i-got-reincarnated-as-a-slime" + ) + ); + + List appearances3 = new ArrayList<>(); + appearances3.add(createFilteredSeries("That Time I Got Reincarnated as a Slime", "that-time-i-got-reincarnated-as-a-slime", "https://www.mywaifulist.moe/series/that-time-i-got-reincarnated-as-a-slime")); + appearances3.add(createFilteredSeries("That Time I Got Reincarnated as a Slime OVA", "that-time-i-got-reincarnated-as-a-slime-ova", "https://www.mywaifulist.moe/series/that-time-i-got-reincarnated-as-a-slime-ova")); + appearances3.add(createFilteredSeries("That Time I Got Reincarnated as a Slime Season 2", "that-time-i-got-reincarnated-as-a-slime-season-2", "https://www.mywaifulist.moe/series/that-time-i-got-reincarnated-as-a-slime-season-2")); + appearances3.add(createFilteredSeries("That Time I Got Reincarnated as a Slime Season 2: Part II", "that-time-i-got-reincarnated-as-a-slime-season-2-part-ii", "https://www.mywaifulist.moe/series/that-time-i-got-reincarnated-as-a-slime-season-2-part-ii")); + appearances3.add(createFilteredSeries("The Slime Diaries: That Time I Got Reincarnated as a Slime", "the-slime-diaries-that-time-i-got-reincarnated-as-a-slime", "https://www.mywaifulist.moe/series/the-slime-diaries-that-time-i-got-reincarnated-as-a-slime")); + + bestWaifus.add(createFilteredWaifu( + appearances3, + "Milim Nava is one of the oldest and strongest Demon Lords, and the third Tr...", + "https://thicc.mywaifulist.moe/waifus/21495/788959e5be43dcea863ea095e7380b18e330f98d98ea21ae799b68a02c4972a7_thumb.jpeg", + 7728.0, + 1016, + "Milim Nava", + "ミリム・ナーヴァ", + null, + null, + "milim-nava-that-time-i-got-reincarnated-as-a-slime", + 85, + "Waifu", + "https://www.mywaifulist.moe/waifu/milim-nava-that-time-i-got-reincarnated-as-a-slime" + ) + ); + + List appearances4 = new ArrayList<>(); + appearances4.add(createFilteredSeries("That Time I Got Reincarnated as a Slime", "that-time-i-got-reincarnated-as-a-slime", "https://www.mywaifulist.moe/series/that-time-i-got-reincarnated-as-a-slime")); + appearances4.add(createFilteredSeries("That Time I Got Reincarnated as a Slime OVA", "that-time-i-got-reincarnated-as-a-slime-ova", "https://www.mywaifulist.moe/series/that-time-i-got-reincarnated-as-a-slime-ova")); + appearances4.add(createFilteredSeries("That Time I Got Reincarnated as a Slime Season 2", "that-time-i-got-reincarnated-as-a-slime-season-2", "https://www.mywaifulist.moe/series/that-time-i-got-reincarnated-as-a-slime-season-2")); + appearances4.add(createFilteredSeries("That Time I Got Reincarnated as a Slime Season 2: Part II", "that-time-i-got-reincarnated-as-a-slime-season-2-part-ii", "https://www.mywaifulist.moe/series/that-time-i-got-reincarnated-as-a-slime-season-2-part-ii")); + appearances4.add(createFilteredSeries("The Slime Diaries: That Time I Got Reincarnated as a Slime", "the-slime-diaries-that-time-i-got-reincarnated-as-a-slime", "https://www.mywaifulist.moe/series/the-slime-diaries-that-time-i-got-reincarnated-as-a-slime")); + + bestWaifus.add(createFilteredWaifu( + appearances4, + "Shuna is one of the third group of subordinate Monsters to be named by Rimu...", + "https://thicc.mywaifulist.moe/waifus/7729/e1f93cba40cb61513793d21a6f2772f849485d7cb6402b07a80b716e099faed8_thumb.jpeg", + 7729.0, + 998, + "Shuna", + "朱菜", + "Shuna", + "Shuna", + "shuna-that-time-i-got-reincarnated-as-a-slime", + 78, + "Waifu", + "https://www.mywaifulist.moe/waifu/shuna-that-time-i-got-reincarnated-as-a-slime" + ) + ); + + List appearances5 = new ArrayList<>(); + appearances5.add(createFilteredSeries("That Time I Got Reincarnated as a Slime", "that-time-i-got-reincarnated-as-a-slime", "https://www.mywaifulist.moe/series/that-time-i-got-reincarnated-as-a-slime")); + appearances5.add(createFilteredSeries("That Time I Got Reincarnated as a Slime OVA", "that-time-i-got-reincarnated-as-a-slime-ova", "https://www.mywaifulist.moe/series/that-time-i-got-reincarnated-as-a-slime-ova")); + appearances5.add(createFilteredSeries("That Time I Got Reincarnated as a Slime Season 2", "that-time-i-got-reincarnated-as-a-slime-season-2", "https://www.mywaifulist.moe/series/that-time-i-got-reincarnated-as-a-slime-season-2")); + appearances5.add(createFilteredSeries("That Time I Got Reincarnated as a Slime Season 2: Part II", "that-time-i-got-reincarnated-as-a-slime-season-2-part-ii", "https://www.mywaifulist.moe/series/that-time-i-got-reincarnated-as-a-slime-season-2-part-ii")); + appearances5.add(createFilteredSeries("The Slime Diaries: That Time I Got Reincarnated as a Slime", "the-slime-diaries-that-time-i-got-reincarnated-as-a-slime", "https://www.mywaifulist.moe/series/the-slime-diaries-that-time-i-got-reincarnated-as-a-slime")); + + bestWaifus.add(createFilteredWaifu( + appearances5, + "The main protagonist of the series and Founder and King of the city known a...", + "https://thicc.mywaifulist.moe/waifus/7730/a5c4a0dcc0f01851f6df0c551ca4e00df3af50b7d65342e02e994f2ecf62b7a8_thumb.jpeg", + 7730.0, + 550, + "Rimuru Tempest", + "リムル=テンペスト", + null, + null, + "rimuru-tempest-that-time-i-got-reincarnated-as-a-slime", + 55, + "Husbando", + "https://www.mywaifulist.moe/waifu/rimuru-tempest-that-time-i-got-reincarnated-as-a-slime" + ) + ); + + List appearances6 = new ArrayList<>(); + appearances6.add(createFilteredSeries("That Time I Got Reincarnated as a Slime", "that-time-i-got-reincarnated-as-a-slime", "https://www.mywaifulist.moe/series/that-time-i-got-reincarnated-as-a-slime")); + appearances6.add(createFilteredSeries("That Time I Got Reincarnated as a Slime Season 2", "that-time-i-got-reincarnated-as-a-slime-season-2", "https://www.mywaifulist.moe/series/that-time-i-got-reincarnated-as-a-slime-season-2")); + appearances6.add(createFilteredSeries("That Time I Got Reincarnated as a Slime Season 2: Part II", "that-time-i-got-reincarnated-as-a-slime-season-2-part-ii", "https://www.mywaifulist.moe/series/that-time-i-got-reincarnated-as-a-slime-season-2-part-ii")); + appearances6.add(createFilteredSeries("The Slime Diaries: That Time I Got Reincarnated as a Slime", "the-slime-diaries-that-time-i-got-reincarnated-as-a-slime", "https://www.mywaifulist.moe/series/the-slime-diaries-that-time-i-got-reincarnated-as-a-slime")); + + bestWaifus.add(createFilteredWaifu( + appearances6, + "Shizue Izawa, also known as simply Shizu, was the companion of the previous...", + "https://thicc.mywaifulist.moe/waifus/7731/c89f6d88d65ec0358babb3b35696d2648178bf745b0bb1431167f3a97d2ccd7d_thumb.jpeg", + 7731.0, + 914, + "Shizue Izawa", + "井沢静江", + "Izawa Shizue", + "Izawa Shizue", + "shizue-izawa-that-time-i-got-reincarnated-as-a-slime", + 81, + "Waifu", + "https://www.mywaifulist.moe/waifu/shizue-izawa-that-time-i-got-reincarnated-as-a-slime" + ) + ); + + List appearances7 = new ArrayList<>(); + appearances7.add(createFilteredSeries("Magia Record: Puella Magi Madoka Magica Side Story", "magia-record-puella-magi-madoka-magica-side-story", "https://www.mywaifulist.moe/series/magia-record-puella-magi-madoka-magica-side-story")); + appearances7.add(createFilteredSeries("Magia Record: Puella Magi Madoka Magica Side Story 2nd Season", "magia-record-puella-magi-madoka-magica-side-story-2nd-season", "https://www.mywaifulist.moe/series/magia-record-puella-magi-madoka-magica-side-story-2nd-season")); + + bestWaifus.add(createFilteredWaifu( + appearances7, + "A genius artist obsessed with the theme of magical girl life and death, who...", + "https://thicc.mywaifulist.moe/waifus/16490/fbc5dab5ec0381973c837261ec8f6bfa93cebe8a7471ece03627c754442f9965_thumb.png", + 16490.0, + 44, + "Alina Gray", + "アリナ グレイ", + null, + null, + "alina-gray", + 1, + "Waifu", + "https://www.mywaifulist.moe/waifu/alina-gray" + ) + ); + + List appearances8 = new ArrayList<>(); + appearances8.add(createFilteredSeries("The Great Jahy Will Not Be Defeated!", "the-great-jahy-will-not-be-defeated", "https://www.mywaifulist.moe/series/the-great-jahy-will-not-be-defeated")); + + bestWaifus.add(createFilteredWaifu( + appearances8, + "The #2 of the Demon Realm... well, was", + "https://thicc.mywaifulist.moe/waifus/18772/6d44ea024aff2a387319065b4c37a2f6eeab72deecfc5a308b2bb42a796d8bff_thumb.jpeg", + 18772.0, + 126, + "Jahy", + "ジャヒ", + null, + null, + "jahy", + 4, + "Waifu", + "https://www.mywaifulist.moe/waifu/jahy" + ) + ); + + List appearances9 = new ArrayList<>(); + appearances9.add(createFilteredSeries("That Time I Got Reincarnated as a Slime", "that-time-i-got-reincarnated-as-a-slime", "https://www.mywaifulist.moe/series/that-time-i-got-reincarnated-as-a-slime")); + appearances9.add(createFilteredSeries("That Time I Got Reincarnated as a Slime Season 2", "that-time-i-got-reincarnated-as-a-slime-season-2", "https://www.mywaifulist.moe/series/that-time-i-got-reincarnated-as-a-slime-season-2")); + appearances9.add(createFilteredSeries("That Time I Got Reincarnated as a Slime Season 2: Part II", "that-time-i-got-reincarnated-as-a-slime-season-2-part-ii", "https://www.mywaifulist.moe/series/that-time-i-got-reincarnated-as-a-slime-season-2-part-ii")); + appearances9.add(createFilteredSeries("The Slime Diaries: That Time I Got Reincarnated as a Slime", "the-slime-diaries-that-time-i-got-reincarnated-as-a-slime", "https://www.mywaifulist.moe/series/the-slime-diaries-that-time-i-got-reincarnated-as-a-slime")); + + bestWaifus.add(createFilteredWaifu( + appearances9, + "Treyni (トレイニー Toreinii) is a dryad that resides in the Jura Forest....", + "https://thicc.mywaifulist.moe/waifus/19048/f624b96166f76c3e1d5fc720ca93713e0d491fbae1634373e540d5cdd73dbcd0_thumb.png", + 19048.0, + 187, + "Treyni", + "トレイニー Protector of Treants Manager of the Great Jura Forest", + null, + null, + "treyni-that-time-i-got-reincarnated-as-a-slime", + 16, + "Waifu", + "https://www.mywaifulist.moe/waifu/treyni-that-time-i-got-reincarnated-as-a-slime" + ) + ); + + List appearances10 = new ArrayList<>(); + appearances10.add(createFilteredSeries("Obey Me!", "obey-me", "https://www.mywaifulist.moe/series/obey-me")); + + bestWaifus.add(createFilteredWaifu( + appearances10, + "Satan is the youngest member of the family but is ranked 4th due to his pow...", + "https://thicc.mywaifulist.moe/waifus/31538/5a5889850922830d32dcc800d88acc4e858c19ad7e8f30b53df9f1b3963ea068_thumb.png", + 31538.0, + 36, + "Satan", + "サタン", + "", + "", + "satan-2", + 0, + "Husbando", + "https://www.mywaifulist.moe/waifu/satan-2" + ) + ); + + return bestWaifus; + } + + private static FilteredWaifu createFilteredWaifu(List appearances, String description, String displayPicture, + Double id, Integer likes, String name, String originalName, String romaji, + String romaji_name, String slug, Integer trash, String type, String url) { + FilteredWaifu filteredWaifu = new FilteredWaifu(); + filteredWaifu.setAppearances(appearances); + filteredWaifu.setDescription(description); + filteredWaifu.setDisplayPicture(displayPicture); + filteredWaifu.setId(id); + filteredWaifu.setLikes(likes); + filteredWaifu.setName(name); + filteredWaifu.setOriginalName(originalName); + filteredWaifu.setRomaji(romaji); + filteredWaifu.setRomajiName(romaji_name); + filteredWaifu.setSlug(slug); + filteredWaifu.setTrash(trash); + filteredWaifu.setType(type); + filteredWaifu.setUrl(url); + filteredWaifu.setRelevance(1); + return filteredWaifu; + } + + + private static FilteredSeries createFilteredSeries(String name, String slug, String url) { + FilteredSeries filteredSeries = new FilteredSeries(); + filteredSeries.setName(name); + filteredSeries.setDescription(null); + filteredSeries.setDisplayPicture(null); + filteredSeries.setId(null); + filteredSeries.setOriginalName(null); + filteredSeries.setRelevance(1); + filteredSeries.setRomajiName(null); + filteredSeries.setType(null); + filteredSeries.setSlug(slug); + filteredSeries.setUrl(url); + filteredSeries.setRelevance(1); + return filteredSeries; + } +}