Skip to content

Commit

Permalink
Migrating to JUnit 5.10.2
Browse files Browse the repository at this point in the history
  • Loading branch information
marigostra committed Feb 20, 2024
1 parent e2baab9 commit ad5181a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 11 deletions.
7 changes: 4 additions & 3 deletions src/test/java/org/luwrain/linux/BashProcessTest.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2012-2022 Michael Pozhidaev <[email protected]>
Copyright 2012-2024 Michael Pozhidaev <[email protected]>
This file is part of LUWRAIN.
Expand All @@ -16,9 +16,10 @@

package org.luwrain.linux;

import org.junit.*;
import org.junit.jupiter.api.*;
import static org.junit.jupiter.api.Assertions.*;

public class BashProcessTest extends Assert
public class BashProcessTest
{
@Test public void escapeEmpty()
{
Expand Down
9 changes: 5 additions & 4 deletions src/test/java/org/luwrain/linux/PartedTest.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2012-2022 Michael Pozhidaev <[email protected]>
Copyright 2012-2024 Michael Pozhidaev <[email protected]>
This file is part of LUWRAIN.
Expand All @@ -19,11 +19,12 @@
import java.io.*;
import java.net.*;

import org.junit.*;
import org.junit.jupiter.api.*;
import static org.junit.jupiter.api.Assertions.*;

import org.luwrain.core.*;

public class PartedTest extends Assert
public class PartedTest
{
private Parted parted = null;

Expand All @@ -35,7 +36,7 @@ public class PartedTest extends Assert
assertEquals(Parted.GPT, parted.getPartTableType());
}

@Before public void create()
@BeforeEach public void create()
{
this.parted = new Parted("/dev/nvme0n1", caller());
}
Expand Down
9 changes: 5 additions & 4 deletions src/test/java/org/luwrain/linux/services/NmCliTest.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2012-2022 Michael Pozhidaev <[email protected]>
Copyright 2012-2024 Michael Pozhidaev <[email protected]>
This file is part of LUWRAIN.
Expand All @@ -19,11 +19,12 @@
import java.io.*;
import java.net.*;

import org.junit.*;
import org.junit.jupiter.api.*;
import static org.junit.jupiter.api.Assertions.*;

import org.luwrain.linux.*;

public class NmCliTest extends Assert
public class NmCliTest
{
private NmCli nmCli = null;

Expand All @@ -42,7 +43,7 @@ public class NmCliTest extends Assert
assertNotNull("DIRECT-Pp-BRAVIA", i.getName());
}

@Before public void create()
@BeforeEach public void create()
{
this.nmCli = new NmCli(caller());
}
Expand Down

0 comments on commit ad5181a

Please sign in to comment.