Skip to content

Commit

Permalink
correct Gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
LiuChao93 committed Feb 18, 2020
1 parent 77892f6 commit 718de30
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 18 deletions.
17 changes: 14 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,33 @@ plugins {
id 'application'
id 'checkstyle'
id 'org.openjfx.javafxplugin' version '0.0.7'
id 'com.github.johnrengelman.shadow' version '5.1.0'
}

checkstyle {
toolVersion = '8.23'
}

group 'lcduke.Duke'
shadowJar {
archiveBaseName = "duke"
archiveVersion = "0.1.3"
archiveClassifier = null
archiveAppendix = null
}

group 'lcduke.Launcher'
version '0.1.0'

repositories {
mavenCentral()
}

dependencies {
implementation 'org.junit.jupiter:junit-jupiter'
implementation 'org.junit.jupiter:junit-jupiter'
testImplementation 'org.junit.jupiter:junit-jupiter:5.5.0'
}

test {
useJUnitPlatform()
}

javafx {
Expand Down
5 changes: 3 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#Wed Feb 19 00:55:35 SGT 2020
distributionUrl=https\://services.gradle.org/distributions/gradle-5.2.1-all.zip
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.2.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
2 changes: 1 addition & 1 deletion src/main/java/savedTaskList.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
[E][-] prepare for examination (at: Mar 15 2020 10:03)
[T][-] dinner
[T][-] test
[T][+] test
[E][-] sleep maybe (at: Oct 23 2013 14:10)
4 changes: 2 additions & 2 deletions src/test/java/lcduke/DeadlineTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

public class DeadlineTest {
@Test
public void TestToStringOutput() {
Task task1 = new Deadline( "description", "2019-08-01 23:08");
public void testStringOutput() {
Task task1 = new Deadline("description", "2019-08-01 23:08");
assertEquals("[D][" + Character.toString((char)45) + "] description (by: "
+ "Aug 1 2019 23:08" + ")", task1.toString());
}
Expand Down
12 changes: 2 additions & 10 deletions src/test/java/lcduke/TaskTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@

public class TaskTest {
@Test
public void testGetDoneOutput(){
public void testGetDoneOutput() {
lcduke.Task task1 = new lcduke.Todo("todo testing todo function");
assertEquals(false, task1.getDone());
}

@Test
public void testToStringOutput(){
public void testToString() {
lcduke.Task task1 = new lcduke.Todo("todo read book");
task1.markAsDone();
assertEquals("[T][" + Character.toString((char)43) + "] " + "todo read book",
Expand All @@ -37,12 +37,4 @@ void getDescription() {
@Test
void printInit() {
}

@Test
void testToString() {
}

@Test
void testToString1() {
}
}

0 comments on commit 718de30

Please sign in to comment.