mirror of
https://github.com/tribufu/tribufu-java
synced 2026-05-06 14:57:27 +00:00
Migrate to Scala Library
This commit is contained in:
parent
3973975dc6
commit
51263aa8b7
4 changed files with 44 additions and 20 deletions
|
|
@ -2,17 +2,17 @@
|
|||
|
||||
package tribufu
|
||||
|
||||
class TribuFu {
|
||||
class Library {
|
||||
init()
|
||||
|
||||
private def init(){
|
||||
// Used to load the 'TribuFu' library on application startup.
|
||||
//System.loadLibrary("TribuFu")
|
||||
}
|
||||
|
||||
/**
|
||||
* A native method that is implemented by the 'TribuFu' native library, which is packaged with
|
||||
* this library.
|
||||
*/
|
||||
// external fun Hello(): Int
|
||||
|
||||
companion object {
|
||||
// Used to load the 'TribuFu' library on application startup.
|
||||
init {
|
||||
//System.loadLibrary("TribuFu")
|
||||
}
|
||||
}
|
||||
//@native def Hello(): Int
|
||||
}
|
||||
16
lib/src/test/scala/tribufu/LibrarySuite.scala
Normal file
16
lib/src/test/scala/tribufu/LibrarySuite.scala
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
// Copyright (c) TribuFu. All Rights Reserved
|
||||
|
||||
package tribufu
|
||||
|
||||
import org.junit.runner.RunWith
|
||||
import org.scalatest.funsuite.AnyFunSuite
|
||||
import org.scalatestplus.junit.JUnitRunner
|
||||
|
||||
@RunWith(classOf[JUnitRunner])
|
||||
class LibrarySuite extends AnyFunSuite {
|
||||
test("Hello is always true") {
|
||||
//def library = new Library()
|
||||
//assert(library.Hello())
|
||||
assert(true)
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue