Skip to content

Commit

Permalink
gplazma2: fix junit assert deprecation warnings
Browse files Browse the repository at this point in the history
Motivation:
The JUnit Assert class was moved to a different package in version 4, leading to deprecation warnings when importing from the old one.

Modification:
Update the Assert import path where the old one is still used.

Result:
Fewer deprecation warnings regarding JUnit.

Target: master
Requires-notes: no
Requires-book: no
Patch: https://rb.dcache.org/r/13441/
Acked-by: Paul Millar
  • Loading branch information
lemora committed Feb 16, 2022
1 parent fb67d1e commit f4b4921
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package org.dcache.gplazma.plugins;

import static junit.framework.Assert.assertEquals;
import static junit.framework.Assert.assertTrue;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;

import com.google.common.collect.Lists;
import com.google.common.io.Resources;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

import java.util.Collections;
import java.util.Properties;
import junit.framework.Assert;
import org.dcache.gplazma.plugins.GPlazmaPlugin;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;

Expand Down

0 comments on commit f4b4921

Please sign in to comment.