This is an automated email from the ASF dual-hosted git repository.

aradzinski pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git


The following commit(s) were added to refs/heads/master by this push:
     new f863337  Refactoring names...
f863337 is described below

commit f86333789127fddf6de1ae96f5dcbfbf6071909f
Author: Aaron Radzinski <[email protected]>
AuthorDate: Tue Jun 15 20:48:48 2021 -0700

    Refactoring names...
---
 ...ationSpec.scala => NCModelValidationSpec.scala} |  2 +-
 ...ationSpec.scala => NCModelValidationSpec.scala} |  2 +-
 ...ationSpec.scala => NCModelValidationSpec.scala} |  2 +-
 ...ationSpec.scala => NCModelValidationSpec.scala} | 10 ++---
 ...ationSpec.scala => NCModelValidationSpec.scala} |  2 +-
 ...ationSpec.scala => NCModelValidationSpec.scala} |  2 +-
 ...ationSpec.scala => NCModelValidationSpec.scala} |  2 +-
 .../nlpcraft/examples/time/NCTimeModelSpec.scala   | 44 ----------------------
 ...ationSpec.scala => NCModelValidationSpec.scala} |  2 +-
 9 files changed, 12 insertions(+), 56 deletions(-)

diff --git 
a/nlpcraft-examples/alarm/src/test/java/org/apache/nlpcraft/examples/alarm/NCModelsValidationSpec.scala
 
b/nlpcraft-examples/alarm/src/test/java/org/apache/nlpcraft/examples/alarm/NCModelValidationSpec.scala
similarity index 97%
rename from 
nlpcraft-examples/alarm/src/test/java/org/apache/nlpcraft/examples/alarm/NCModelsValidationSpec.scala
rename to 
nlpcraft-examples/alarm/src/test/java/org/apache/nlpcraft/examples/alarm/NCModelValidationSpec.scala
index 6544708..652d91d 100644
--- 
a/nlpcraft-examples/alarm/src/test/java/org/apache/nlpcraft/examples/alarm/NCModelsValidationSpec.scala
+++ 
b/nlpcraft-examples/alarm/src/test/java/org/apache/nlpcraft/examples/alarm/NCModelValidationSpec.scala
@@ -23,7 +23,7 @@ import org.junit.jupiter.api.{Assertions, Test}
 /**
   * JUnit model validation.
   */
-class NCModelsValidationSpec {
+class NCModelValidationSpec {
     @Test
     def test(): Unit = {
         // Instruct auto-validator what models to test.
diff --git 
a/nlpcraft-examples/echo/src/test/java/org/apache/nlpcraft/examples/echo/NCModelsValidationSpec.scala
 
b/nlpcraft-examples/echo/src/test/java/org/apache/nlpcraft/examples/echo/NCModelValidationSpec.scala
similarity index 97%
rename from 
nlpcraft-examples/echo/src/test/java/org/apache/nlpcraft/examples/echo/NCModelsValidationSpec.scala
rename to 
nlpcraft-examples/echo/src/test/java/org/apache/nlpcraft/examples/echo/NCModelValidationSpec.scala
index 0da3950..2129709 100644
--- 
a/nlpcraft-examples/echo/src/test/java/org/apache/nlpcraft/examples/echo/NCModelsValidationSpec.scala
+++ 
b/nlpcraft-examples/echo/src/test/java/org/apache/nlpcraft/examples/echo/NCModelValidationSpec.scala
@@ -23,7 +23,7 @@ import org.junit.jupiter.api.{Assertions, Test}
 /**
   * JUnit model validation.
   */
-class NCModelsValidationSpec {
+class NCModelValidationSpec {
     @Test
     def test(): Unit = {
         // Instruct auto-validator what models to test.
diff --git 
a/nlpcraft-examples/helloworld/src/test/java/org/apache/nlpcraft/examples/helloworld/NCModelsValidationSpec.scala
 
b/nlpcraft-examples/helloworld/src/test/java/org/apache/nlpcraft/examples/helloworld/NCModelValidationSpec.scala
similarity index 97%
rename from 
nlpcraft-examples/helloworld/src/test/java/org/apache/nlpcraft/examples/helloworld/NCModelsValidationSpec.scala
rename to 
nlpcraft-examples/helloworld/src/test/java/org/apache/nlpcraft/examples/helloworld/NCModelValidationSpec.scala
index 36bc023..8de8082 100644
--- 
a/nlpcraft-examples/helloworld/src/test/java/org/apache/nlpcraft/examples/helloworld/NCModelsValidationSpec.scala
+++ 
b/nlpcraft-examples/helloworld/src/test/java/org/apache/nlpcraft/examples/helloworld/NCModelValidationSpec.scala
@@ -23,7 +23,7 @@ import org.junit.jupiter.api.{Assertions, Test}
 /**
   * JUnit model validation.
   */
-class NCModelsValidationSpec {
+class NCModelValidationSpec {
     @Test
     def test(): Unit = {
         // Instruct auto-validator what models to test.
diff --git 
a/nlpcraft-examples/lightswitch/src/test/java/org/apache/nlpcraft/examples/lightswitch/NCModelsValidationSpec.scala
 
b/nlpcraft-examples/lightswitch/src/test/java/org/apache/nlpcraft/examples/lightswitch/NCModelValidationSpec.scala
similarity index 78%
rename from 
nlpcraft-examples/lightswitch/src/test/java/org/apache/nlpcraft/examples/lightswitch/NCModelsValidationSpec.scala
rename to 
nlpcraft-examples/lightswitch/src/test/java/org/apache/nlpcraft/examples/lightswitch/NCModelValidationSpec.scala
index f737ca3..b27ccf6 100644
--- 
a/nlpcraft-examples/lightswitch/src/test/java/org/apache/nlpcraft/examples/lightswitch/NCModelsValidationSpec.scala
+++ 
b/nlpcraft-examples/lightswitch/src/test/java/org/apache/nlpcraft/examples/lightswitch/NCModelValidationSpec.scala
@@ -23,16 +23,16 @@ import org.junit.jupiter.api.{Assertions, Test}
 /**
   * JUnit models validation.
   */
-class NCModelsValidationSpec {
+class NCModelValidationSpec {
     @Test
     def test(): Unit = {
         // Instruct auto-validator what models to test.
         System.setProperty(
             "NLPCRAFT_TEST_MODELS",
-                
"org.apache.nlpcraft.examples.lightswitch.LightSwitchJavaModel," +
-                
"org.apache.nlpcraft.examples.lightswitch.LightSwitchGroovyModel," +
-                
"org.apache.nlpcraft.examples.lightswitch.LightSwitchKotlinModel," +
-                
"org.apache.nlpcraft.examples.lightswitch.LightSwitchScalaModel"
+            "org.apache.nlpcraft.examples.lightswitch.LightSwitchJavaModel," +
+            "org.apache.nlpcraft.examples.lightswitch.LightSwitchGroovyModel," 
+
+            "org.apache.nlpcraft.examples.lightswitch.LightSwitchKotlinModel," 
+
+            "org.apache.nlpcraft.examples.lightswitch.LightSwitchScalaModel"
         )
 
         // Start model auto-validator.
diff --git 
a/nlpcraft-examples/minecraft/src/test/kotlin/org/apache/nlpcraft/example/minecraft/NCModelsValidationSpec.scala
 
b/nlpcraft-examples/minecraft/src/test/kotlin/org/apache/nlpcraft/example/minecraft/NCModelValidationSpec.scala
similarity index 97%
rename from 
nlpcraft-examples/minecraft/src/test/kotlin/org/apache/nlpcraft/example/minecraft/NCModelsValidationSpec.scala
rename to 
nlpcraft-examples/minecraft/src/test/kotlin/org/apache/nlpcraft/example/minecraft/NCModelValidationSpec.scala
index f6510c7..f1b572e 100644
--- 
a/nlpcraft-examples/minecraft/src/test/kotlin/org/apache/nlpcraft/example/minecraft/NCModelsValidationSpec.scala
+++ 
b/nlpcraft-examples/minecraft/src/test/kotlin/org/apache/nlpcraft/example/minecraft/NCModelValidationSpec.scala
@@ -23,7 +23,7 @@ import org.junit.jupiter.api.{Assertions, Test}
 /**
   * JUnit model validation.
   */
-class NCModelsValidationSpec {
+class NCModelValidationSpec {
     @Test
     def test(): Unit = {
         // Instruct auto-validator what models to test.
diff --git 
a/nlpcraft-examples/sql/src/test/java/org/apache/nlpcraft/examples/sql/NCModelsValidationSpec.scala
 
b/nlpcraft-examples/sql/src/test/java/org/apache/nlpcraft/examples/sql/NCModelValidationSpec.scala
similarity index 98%
rename from 
nlpcraft-examples/sql/src/test/java/org/apache/nlpcraft/examples/sql/NCModelsValidationSpec.scala
rename to 
nlpcraft-examples/sql/src/test/java/org/apache/nlpcraft/examples/sql/NCModelValidationSpec.scala
index 24ca1a8..12bc9b1 100644
--- 
a/nlpcraft-examples/sql/src/test/java/org/apache/nlpcraft/examples/sql/NCModelsValidationSpec.scala
+++ 
b/nlpcraft-examples/sql/src/test/java/org/apache/nlpcraft/examples/sql/NCModelValidationSpec.scala
@@ -24,7 +24,7 @@ import org.junit.jupiter.api.{AfterEach, Assertions, 
BeforeEach, Test}
 /**
   * JUnit model validation.
   */
-class NCModelsValidationSpec {
+class NCModelValidationSpec {
     @BeforeEach
     def before(): Unit = SqlServer.start()
 
diff --git 
a/nlpcraft-examples/time/src/test/java/org/apache/nlpcraft/examples/time/NCModelsValidationSpec.scala
 
b/nlpcraft-examples/time/src/test/java/org/apache/nlpcraft/examples/time/NCModelValidationSpec.scala
similarity index 97%
rename from 
nlpcraft-examples/time/src/test/java/org/apache/nlpcraft/examples/time/NCModelsValidationSpec.scala
rename to 
nlpcraft-examples/time/src/test/java/org/apache/nlpcraft/examples/time/NCModelValidationSpec.scala
index e2bf184..dbbe657 100644
--- 
a/nlpcraft-examples/time/src/test/java/org/apache/nlpcraft/examples/time/NCModelsValidationSpec.scala
+++ 
b/nlpcraft-examples/time/src/test/java/org/apache/nlpcraft/examples/time/NCModelValidationSpec.scala
@@ -23,7 +23,7 @@ import org.junit.jupiter.api.{Assertions, Test}
 /**
   * JUnit model validation.
   */
-class NCModelsValidationSpec {
+class NCModelValidationSpec {
     @Test
     def test(): Unit = {
         // Instruct auto-validator what models to test.
diff --git 
a/nlpcraft-examples/time/src/test/java/org/apache/nlpcraft/examples/time/NCTimeModelSpec.scala
 
b/nlpcraft-examples/time/src/test/java/org/apache/nlpcraft/examples/time/NCTimeModelSpec.scala
deleted file mode 100644
index ccc5e31..0000000
--- 
a/nlpcraft-examples/time/src/test/java/org/apache/nlpcraft/examples/time/NCTimeModelSpec.scala
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.nlpcraft.examples.time
-
-import org.apache.nlpcraft.{NCTestContext, NCTestEnvironment}
-import org.apache.nlpcraft.common.NCException
-import org.junit.jupiter.api.Test
-
-import java.io.IOException
-
-@NCTestEnvironment(model = classOf[TimeModel], startClient = true)
-class NCTimeModelSpec extends NCTestContext {
-    @Test
-    @throws[NCException]
-    @throws[IOException]
-    private[time] def testIntentsPriorities(): Unit = {
-        // intent1 must be winner for `What's the local time?` question, 
because exact matching.
-        // Accumulated history (geo:city information) must be ignored.
-
-        // 1. Without conversation.
-        checkIntent("Show me time of the day in London.", "intent2")
-        getClient.clearConversation()
-        checkIntent("What's the local time?", "intent1")
-
-        // 2. The same with conversation.
-        checkIntent("Show me time of the day in London.", "intent2")
-        checkIntent("What's the local time?", "intent1")
-    }
-}
diff --git 
a/nlpcraft-examples/weather/src/test/java/org/apache/nlpcraft/examples/weather/NCModelsValidationSpec.scala
 
b/nlpcraft-examples/weather/src/test/java/org/apache/nlpcraft/examples/weather/NCModelValidationSpec.scala
similarity index 97%
rename from 
nlpcraft-examples/weather/src/test/java/org/apache/nlpcraft/examples/weather/NCModelsValidationSpec.scala
rename to 
nlpcraft-examples/weather/src/test/java/org/apache/nlpcraft/examples/weather/NCModelValidationSpec.scala
index e0d4127..6258fe6 100644
--- 
a/nlpcraft-examples/weather/src/test/java/org/apache/nlpcraft/examples/weather/NCModelsValidationSpec.scala
+++ 
b/nlpcraft-examples/weather/src/test/java/org/apache/nlpcraft/examples/weather/NCModelValidationSpec.scala
@@ -23,7 +23,7 @@ import org.junit.jupiter.api.{Assertions, Test}
 /**
   * JUnit model validation.
   */
-class NCModelsValidationSpec {
+class NCModelValidationSpec {
     @Test
     def test(): Unit = {
         // Instruct auto-validator what models to test.

Reply via email to