Skip to content
This repository has been archived by the owner on Oct 3, 2020. It is now read-only.

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
fulton committed Jan 14, 2020
1 parent dedbe29 commit ec00583
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/com/andromeda/araserver/Run.kt
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,11 @@ import java.sql.SQLException
import java.sql.Time
import java.util.*

object Run : NanoHTTPD(80) {
public object Run : NanoHTTPD(80) {
private var keyWord: KeyWord? = null
private var model: ParserModel? = null
private var parser: Parser? = null
const val port = this.listeningPort
//If connected to
override fun serve(session: IHTTPSession): Response {
val tag: Int
Expand Down
12 changes: 12 additions & 0 deletions src/test/java/com/andromeda/araserver/test/TestThePort.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package com.andromeda.araserver.test;

import com.andromeda.araserver.Run;
import org.junit.Assert;
import org.junit.Test;

public class TestThePort {
@Test
public void test(){
Assert.assertEquals(Run.port, 80);
}
}

0 comments on commit ec00583

Please sign in to comment.