JAVA-22625 Replaced Junit4 package with Junit5 (#14334)

This commit is contained in:
Dhawal Kapil 2023-06-30 17:03:46 +05:30 committed by GitHub
parent cd747f077b
commit f4d0dfcbbe
1 changed files with 3 additions and 2 deletions

View File

@ -1,10 +1,11 @@
package com.baeldung.asciiart;
import com.baeldung.asciiart.AsciiArt.Settings;
import org.junit.Test;
import java.awt.*;
import org.junit.jupiter.api.Test;
public class AsciiArtIntegrationTest {
@Test
@ -12,7 +13,7 @@ public class AsciiArtIntegrationTest {
AsciiArt asciiArt = new AsciiArt();
String text = "BAELDUNG";
Settings settings = asciiArt.new Settings(new Font("SansSerif", Font.BOLD, 24), text.length() * 30, 30); // 30 pixel width per character
asciiArt.drawString(text, "*", settings);
}
}