Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions src/main/java/net/datafaker/providers/entertainment/DeathNote.java
Original file line number Diff line number Diff line change
@@ -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<EntertainmentProviders> {

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");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
1 change: 1 addition & 0 deletions src/main/java/net/datafaker/service/files/EnFile.java
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ public String getPath() {
"currency.yml",
"dc_comics.yml",
"dark_souls.yml",
"death_note.yml",
"demographic.yml",
"departed.yml",
"dessert.yml",
Expand Down
109 changes: 109 additions & 0 deletions src/main/resources/en/death_note.yml
Original file line number Diff line number Diff line change
@@ -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"
Original file line number Diff line number Diff line change
@@ -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<TestSpec> 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")
);
}
}
Loading