Skip to content

Commit

Permalink
BLADE-738 cli: renames WorkspaceProductComparator to WorkspaceProduct…
Browse files Browse the repository at this point in the history
…InfoComparator
  • Loading branch information
drewbrokke committed Nov 10, 2023
1 parent 0247b5c commit e2e5f00
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* @author Gregory Amerson
* @author Drew Brokke
*/
public class WorkspaceProductComparator implements Comparator<String> {
public class WorkspaceProductInfoComparator implements Comparator<String> {

@Override
public int compare(String key1, String key2) {
Expand Down
4 changes: 2 additions & 2 deletions cli/src/main/java/com/liferay/blade/cli/util/BladeUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import com.liferay.blade.cli.BladeCLI;
import com.liferay.blade.cli.Extensions;
import com.liferay.blade.cli.command.SamplesCommand;
import com.liferay.blade.cli.command.validator.WorkspaceProductComparator;
import com.liferay.blade.cli.command.validator.WorkspaceProductInfoComparator;
import com.liferay.project.templates.ProjectTemplates;
import com.liferay.project.templates.extensions.util.ProjectTemplatesUtil;

Expand Down Expand Up @@ -413,7 +413,7 @@ public static List<String> getWorkspaceProductKeys(boolean promoted) {
return true;
}
).sorted(
new WorkspaceProductComparator()
new WorkspaceProductInfoComparator()
).collect(
Collectors.toList()
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public void testWithRandom() throws Exception {

List<String> sorted = randomLines.stream(
).sorted(
new WorkspaceProductComparator()
new WorkspaceProductInfoComparator()
).collect(
Collectors.toList()
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* @author Gregory Amerson
* @author Drew Brokke
*/
public class WorkspaceProductComparatorTest {
public class WorkspaceProductInfoComparatorTest {

@Test
public void testSort() throws Exception {
Expand All @@ -30,7 +30,7 @@ public void testSort() throws Exception {

actualKeys.sort(null);

actualKeys.sort(new WorkspaceProductComparator());
actualKeys.sort(new WorkspaceProductInfoComparator());

Assert.assertEquals(
expectedKeys.stream(
Expand Down

0 comments on commit e2e5f00

Please sign in to comment.