Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions com.adobe.granite.ide.eclipse-ui/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,11 @@

<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.13.2</version>
<scope>test</scope>
</dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>5.13.4</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.maven.shared</groupId>
<artifactId>maven-shared-utils</artifactId>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
package com.adobe.granite.ide.eclipse.ui.wizards.np;

import static org.junit.Assert.assertEquals;
import static org.junit.jupiter.api.Assertions.assertEquals;

import java.util.LinkedHashMap;
import java.util.Map;

import org.apache.maven.archetype.metadata.RequiredProperty;

import org.apache.maven.shared.utils.StringUtils;
import org.junit.Test;
import org.junit.jupiter.api.Test;

@SuppressWarnings("restriction")
public class PropUtilsTest {
class PropUtilsTest {

private Map<String, RequiredPropertyWrapper> getProperties(String[][] props) {
Map<String, RequiredPropertyWrapper> properties = new LinkedHashMap<String, RequiredPropertyWrapper>();
Expand All @@ -25,9 +26,9 @@ private Map<String, RequiredPropertyWrapper> getProperties(String[][] props) {
}
return properties;
}

@Test
public void testUpdateProperties() {
void updateProperties() {
Map<String, RequiredPropertyWrapper> properties = getProperties(new String[][] {
new String[] {
"unmodified", "", "DEFAULT_UNMODIFIED", ""
Expand Down Expand Up @@ -82,6 +83,6 @@ private void printProperties(Map<String, RequiredPropertyWrapper> properties) {
}

private String pad(Object obj) {
return StringUtils.rightPad(StringUtils.defaultString(String.valueOf(obj), ""), 30);
return StringUtils.rightPad(String.valueOf(obj), 30);
}
}