From cfcb80bc7a99af76f43c22a7195dfb1f938121d5 Mon Sep 17 00:00:00 2001 From: sullis Date: Mon, 29 Jul 2024 12:53:44 -0700 Subject: [PATCH] fix scalatest --- build.sbt | 2 +- .../scala/io/github/sullis/helloworld/HelloWorldApp.scala | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/build.sbt b/build.sbt index c5deadb..131e031 100644 --- a/build.sbt +++ b/build.sbt @@ -30,7 +30,7 @@ libraryDependencies ++= Seq( "ch.qos.logback" % "logback-classic" % logbackVersion, "ch.qos.logback" % "logback-core" % logbackVersion, "com.google.guava" % "guava" % "32.1.2-jre", - "org.mockito" %% "mockito-scala-scalatest" % "1.17.37" % Test, + "org.scalatestplus" %% "mockito-5-12" % "3.2.19.0" % Test, "org.scalatest" %% "scalatest" % "3.2.19" % Test ) diff --git a/src/main/scala/io/github/sullis/helloworld/HelloWorldApp.scala b/src/main/scala/io/github/sullis/helloworld/HelloWorldApp.scala index c824e6b..0a50f66 100644 --- a/src/main/scala/io/github/sullis/helloworld/HelloWorldApp.scala +++ b/src/main/scala/io/github/sullis/helloworld/HelloWorldApp.scala @@ -4,10 +4,7 @@ object HelloWorldApp extends App { System.out.println("Hello world") - printArgs() - - def printArgs(): Unit = { - + if (args != null) { args.foreach { arg => System.out.println(s"arg: ${arg}") }