From b6e966d028ee0d1c27c572d552399c228ade9f7d Mon Sep 17 00:00:00 2001 From: alaskowski <alaskowski@ethz.ch> Date: Tue, 25 Jul 2023 12:59:12 +0200 Subject: [PATCH] SSDM-55: fixed more tests --- .../managed_property/JythonManagedPropertyEvaluatorTest.java | 4 ++-- .../structured/AbstractStructuredPropertyConverterTest.java | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/server-application-server/sourceTest/java/ch/systemsx/cisd/openbis/generic/shared/managed_property/JythonManagedPropertyEvaluatorTest.java b/server-application-server/sourceTest/java/ch/systemsx/cisd/openbis/generic/shared/managed_property/JythonManagedPropertyEvaluatorTest.java index bcc569116b5..671487e571b 100644 --- a/server-application-server/sourceTest/java/ch/systemsx/cisd/openbis/generic/shared/managed_property/JythonManagedPropertyEvaluatorTest.java +++ b/server-application-server/sourceTest/java/ch/systemsx/cisd/openbis/generic/shared/managed_property/JythonManagedPropertyEvaluatorTest.java @@ -255,7 +255,7 @@ public class JythonManagedPropertyEvaluatorTest extends AssertJUnit evaluator.updateFromUI(managedProperty, person, action1); assertNotNull(managedProperty.getValue()); - String[] inputTokens1 = managedProperty.getValue().split("\\|"); + String[] inputTokens1 = ((String)managedProperty.getValue()).split("\\|"); assertEquals("a1", inputTokens1[0]); assertEquals("t1=null", inputTokens1[1]); assertEquals("t2=v2", inputTokens1[2]); @@ -264,7 +264,7 @@ public class JythonManagedPropertyEvaluatorTest extends AssertJUnit evaluator.updateFromUI(managedProperty, person, action2); assertNotNull(managedProperty.getValue()); - String[] inputTokens2 = managedProperty.getValue().split("\\!"); + String[] inputTokens2 = ((String)managedProperty.getValue()).split("\\!"); assertEquals("a2", inputTokens2[0]); assertEquals("t1=v11", inputTokens2[1]); assertEquals("t2=v22", inputTokens2[2]); diff --git a/server-application-server/sourceTest/java/ch/systemsx/cisd/openbis/generic/shared/managed_property/structured/AbstractStructuredPropertyConverterTest.java b/server-application-server/sourceTest/java/ch/systemsx/cisd/openbis/generic/shared/managed_property/structured/AbstractStructuredPropertyConverterTest.java index 928f6bb19ef..b4151670d25 100644 --- a/server-application-server/sourceTest/java/ch/systemsx/cisd/openbis/generic/shared/managed_property/structured/AbstractStructuredPropertyConverterTest.java +++ b/server-application-server/sourceTest/java/ch/systemsx/cisd/openbis/generic/shared/managed_property/structured/AbstractStructuredPropertyConverterTest.java @@ -15,6 +15,7 @@ */ package ch.systemsx.cisd.openbis.generic.shared.managed_property.structured; +import java.io.Serializable; import java.util.Arrays; import java.util.List; @@ -88,7 +89,7 @@ public abstract class AbstractStructuredPropertyConverterTest extends AssertJUni } @Override - public void setValue(String value) + public void setValue(Serializable value) { throw new UnsupportedOperationException(); } -- GitLab