JAVA-22625 Replaced Junit4 package with Junit5 (#14334)
This commit is contained in:
parent
cd747f077b
commit
f4d0dfcbbe
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue