This is an automated email from the ASF dual-hosted git repository.
jleroux pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-plugins.git
The following commit(s) were added to refs/heads/trunk by this push:
new e8b3caf1d Improved: fixes one minor and few trivial Codenarc issues
e8b3caf1d is described below
commit e8b3caf1dbd7f27949f2ac8ce9356a55a5514dcd
Author: Jacques Le Roux <[email protected]>
AuthorDate: Sun Feb 8 10:16:36 2026 +0100
Improved: fixes one minor and few trivial Codenarc issues
Again the double-quotes reflex struck again
and import org.junit.Test was unnecessary.
That's not a simple test Junit using @test
---
example/src/main/groovy/org/apache/ofbiz/example/ExampleTests.groovy | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git
a/example/src/main/groovy/org/apache/ofbiz/example/ExampleTests.groovy
b/example/src/main/groovy/org/apache/ofbiz/example/ExampleTests.groovy
index 661df0837..612c1c721 100644
--- a/example/src/main/groovy/org/apache/ofbiz/example/ExampleTests.groovy
+++ b/example/src/main/groovy/org/apache/ofbiz/example/ExampleTests.groovy
@@ -21,7 +21,6 @@ package org.apache.ofbiz.example
import org.apache.ofbiz.entity.GenericValue
import org.apache.ofbiz.service.ServiceUtil
import org.apache.ofbiz.service.testtools.OFBizTestCase
-import org.junit.Test
class ExampleTests extends OFBizTestCase {
@@ -40,7 +39,7 @@ class ExampleTests extends OFBizTestCase {
GenericValue example = from('Example').where('exampleId',
'TestExampleUpdate').queryOne()
assert example != null
- assert ("Updated Test Example Name" == (example.exampleName))
+ assert example.exampleName == 'Updated Test Example Name'
}
void testDeleteExample() {