Skip to content

Commit 252f266

Browse files
committed
Fix deprecation logging tests for spark-3.5 profile
1 parent 5474129 commit 252f266

File tree

3 files changed

+21
-2
lines changed

3 files changed

+21
-2
lines changed

java/spark/src/test/java/com/logicalclocks/hsfs/spark/TestFeatureView.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ void testParsingJsonWhenDeprecatedFeatureGroup() throws JsonProcessingException
8787
// Assert
8888
Mockito.verify(appender, Mockito.times(1)).doAppend(argument.capture());
8989
Assert.assertEquals(Level.WARN, argument.getValue().getLevel());
90-
Assert.assertEquals("Feature Group `test_fg`, version `1` is deprecated", argument.getValue().getMessage());
90+
Assert.assertEquals("Feature Group `test_fg`, version `1` is deprecated",
91+
argument.getValue().getMessage().toString());
9192
Assert.assertEquals("com.logicalclocks.hsfs.FeatureGroupBase", argument.getValue().getLoggerName());
9293
}
9394
}

java/spark/src/test/java/com/logicalclocks/hsfs/spark/constructor/TestQuery.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ void testParsingJsonWhenDeprecatedFeatureGroup() throws JsonProcessingException
6666
// Assert
6767
Mockito.verify(appender, Mockito.times(1)).doAppend(argument.capture());
6868
Assert.assertEquals(Level.WARN, argument.getValue().getLevel());
69-
Assert.assertEquals("Feature Group `test_fg`, version `1` is deprecated", argument.getValue().getMessage());
69+
Assert.assertEquals("Feature Group `test_fg`, version `1` is deprecated",
70+
argument.getValue().getMessage().toString());
7071
Assert.assertEquals("com.logicalclocks.hsfs.FeatureGroupBase", argument.getValue().getLoggerName());
7172
}
7273
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#
2+
# Copyright (c) 2024 Hopsworks AB
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
#
14+
# See the License for the specific language governing permissions and limitations under the License.
15+
#
16+
17+
rootLogger.level = warn

0 commit comments

Comments
 (0)