diff --git a/src/main/java/net/datafaker/providers/entertainment/DeathNote.java b/src/main/java/net/datafaker/providers/entertainment/DeathNote.java new file mode 100644 index 000000000..0c073301c --- /dev/null +++ b/src/main/java/net/datafaker/providers/entertainment/DeathNote.java @@ -0,0 +1,31 @@ +package net.datafaker.providers.entertainment; + +import net.datafaker.providers.base.AbstractProvider; + +/** + * Death Note is a Japanese manga series written by Tsugumi Ohba and illustrated by Takeshi Obata. + * + * @since 2.6.0 + */ +public class DeathNote extends AbstractProvider { + + protected DeathNote(EntertainmentProviders faker) { + super(faker); + } + + public String character() { + return resolve("death_note.characters"); + } + + public String location() { + return resolve("death_note.locations"); + } + + public String quote() { + return resolve("death_note.quotes"); + } + + public String shinigami() { + return resolve("death_note.shinigami"); + } +} diff --git a/src/main/java/net/datafaker/providers/entertainment/EntertainmentProviders.java b/src/main/java/net/datafaker/providers/entertainment/EntertainmentProviders.java index e72516ea1..88280be9e 100644 --- a/src/main/java/net/datafaker/providers/entertainment/EntertainmentProviders.java +++ b/src/main/java/net/datafaker/providers/entertainment/EntertainmentProviders.java @@ -59,6 +59,10 @@ default CowboyBebop cowboyBebop() { return getProvider(CowboyBebop.class, CowboyBebop::new); } + default DeathNote deathNote() { + return getProvider(DeathNote.class, DeathNote::new); + } + default Departed departed() { return getProvider(Departed.class, Departed::new); } diff --git a/src/main/java/net/datafaker/service/files/EnFile.java b/src/main/java/net/datafaker/service/files/EnFile.java index 211e59c32..8b5365e10 100644 --- a/src/main/java/net/datafaker/service/files/EnFile.java +++ b/src/main/java/net/datafaker/service/files/EnFile.java @@ -87,6 +87,7 @@ public String getPath() { "currency.yml", "dc_comics.yml", "dark_souls.yml", + "death_note.yml", "demographic.yml", "departed.yml", "dessert.yml", diff --git a/src/main/resources/en/death_note.yml b/src/main/resources/en/death_note.yml new file mode 100644 index 000000000..20d81e5b2 --- /dev/null +++ b/src/main/resources/en/death_note.yml @@ -0,0 +1,109 @@ +en: + faker: + death_note: + characters: + - "Light Yagami" + - "L Lawliet" + - "Misa Amane" + - "Ryuk" + - "Rem" + - "Near" + - "Mello" + - "Soichiro Yagami" + - "Teru Mikami" + - "Kiyomi Takada" + - "Touta Matsuda" + - "Shuichi Aizawa" + - "Kanzo Mogi" + - "Hideki Ide" + - "Hirokazu Ukita" + - "Watari" + - "Roger Ruvie" + - "Matt" + - "Sayu Yagami" + - "Sachiko Yagami" + - "Naomi Misora" + - "Raye Penber" + - "Hitoshi Demegawa" + - "Kyosuke Higuchi" + - "Reiji Namikawa" + - "Shingo Mido" + - "Eiichi Takahashi" + - "Suguru Shimura" + - "Masahiko Kida" + - "Takeshi Ooi" + - "Arayoshi Hatori" + - "Anthony Rester" + - "Stephen Gevanni" + - "Halle Lidner" + - "Ill Ratt" + - "Aiber" + - "Wedy" + - "Lind L. Tailor" + - "Gelus" + - "Sidoh" + - "Jealous" + - "Rod Ross" + - "Jack Neylon" + - "Zakk Irius" + - "Rashual Bid" + - "Jose" + locations: + - "Kanto Region" + - "To-Oh University" + - "Kira Investigation Headquarters" + - "Wammy's House" + - "Yotsuba Corporation" + - "Yagami Residence" + - "Sakura TV" + - "Aoyama" + - "Spaceland" + - "Shinjuku" + - "Tokyo Tower" + - "SPK Headquarters" + - "Mafia Hideout" + - "Yellow Box Warehouse" + - "Shinigami Realm" + - "NPA Headquarters" + - "Daikoku Private Academy" + - "Second Kira's Apartment" + - "Task Force Hotel Suite" + quotes: + - "I'll take a potato chip... and eat it!" + - "I am justice!" + - "This world is rotten, and those who are making it rot deserve to die." + - "In this world, there is only good and evil. That was the first universal truth I grasped from observing the world around me." + - "An eye for an eye, my friend." + - "The human whose name is written in this note shall die." + - "L, do you know? Shinigami love apples." + - "I am the god of the new world." + - "The thing I hate the most is to trample on other people's good will." + - "I can't develop feelings. That's how most idiots screw up." + - "There are many types of monsters in this world. Monsters who will not show themselves and who cause trouble. Monsters who abduct children. Monsters who devour dreams. Monsters who suck blood. And monsters who always tell lies." + - "If you use your head, you won't get fat even if you eat sweets." + - "Kira is childish and he hates losing." + - "In every world, the gods always make the rules. You will fall before my fake rules." + - "Nobody can tell what is right and what is wrong, what is righteous and what is evil." + - "It's not a sense of justice. Figuring out difficult cases is my hobby. If you measured good and evil deeds by current laws, I would be responsible for many crimes." + - "You can't ever win if you're always on the defensive. To win, you have to attack." + - "I'll make you trust me. And when you've told me everything I need to know, I'll kill you." + - "Under normal circumstances, humans should have continued to evolve as the greatest creatures upon this earth, but we were actually regressing." + - "Delete! Delete! Delete! Delete! Delete!" + shinigami: + - "Ryuk" + - "Rem" + - "Gelus" + - "Sidoh" + - "Jealous" + - "Nu" + - "Armonia Justin Beyondormason" + - "Calikarcha" + - "Daril Ghiroza" + - "Deridovely" + - "Gukku" + - "Kinddara Guivelostain" + - "Meadra" + - "Midora" + - "Zerhogie" + - "Zellogi" + - "King of Death" diff --git a/src/test/java/net/datafaker/providers/entertainment/DeathNoteTest.java b/src/test/java/net/datafaker/providers/entertainment/DeathNoteTest.java new file mode 100644 index 000000000..4e1acd9eb --- /dev/null +++ b/src/test/java/net/datafaker/providers/entertainment/DeathNoteTest.java @@ -0,0 +1,20 @@ +package net.datafaker.providers.entertainment; + +import java.util.List; +import java.util.Collection; + + +public class DeathNoteTest extends EntertainmentFakerTest { + + private final DeathNote deathNote = getFaker().deathNote(); + + @Override + protected Collection providerListTest() { + return List.of( + TestSpec.of(deathNote::character, "death_note.characters"), + TestSpec.of(deathNote::location, "death_note.locations"), + TestSpec.of(deathNote::quote, "death_note.quotes"), + TestSpec.of(deathNote::shinigami, "death_note.shinigami") + ); + } +}