This repository has been archived by the owner on May 10, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
557 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
spigot_version=1.17.1-R0.1-SNAPSHOT | ||
plugins_annotation_version=1.2.3-SNAPSHOT | ||
findbugs_version=3.0.1 | ||
junit_version=4.13.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
/* | ||
* Copyright 2021 by Heiko Schäfer <heiko@rangun.de> | ||
* | ||
* This file is part of Luegenpresse. | ||
* | ||
* Luegenpresse is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Lesser General Public License as | ||
* published by the Free Software Foundation, either version 3 of | ||
* the License, or (at your option) any later version. | ||
* | ||
* Luegenpresse is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Lesser General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Lesser General Public License | ||
* along with Luegenpresse. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
package de.rangun.luegenpresse.test; | ||
|
||
import static org.junit.Assert.assertEquals; | ||
import static org.junit.Assert.fail; | ||
|
||
import java.io.File; | ||
|
||
import org.junit.Before; | ||
import org.junit.Test; | ||
|
||
import de.rangun.luegenpresse.spew.Spew; | ||
|
||
public class SpewTest { | ||
|
||
private Spew spew; | ||
|
||
@Before | ||
public void setUp() throws Exception { | ||
|
||
ClassLoader classLoader = getClass().getClassLoader(); | ||
File file = new File(classLoader.getResource("headline").getFile()); | ||
|
||
spew = new Spew(new File(file.getAbsolutePath()), 1L); | ||
} | ||
|
||
@Test | ||
public void test() { | ||
assertEquals( | ||
"Cindi Lauper Tells Of Night Of Terror With Muammar Quadaffi. \"He Threatened Me With a Hatchet\".\n", | ||
spew.getHeadline()); | ||
} | ||
|
||
} |
Oops, something went wrong.