refactor plugin, add Order annoaton support
This commit is contained in:
@@ -15,9 +15,9 @@
|
||||
*/
|
||||
package org.springframework.shell.plugin.support;
|
||||
|
||||
import static org.junit.Assert.*;
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.assertNotNull;
|
||||
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
import org.springframework.shell.Constant;
|
||||
import org.springframework.shell.plugin.HistoryFileNameProvider;
|
||||
@@ -30,14 +30,6 @@ public class DefaultHistoryFileProviderTest {
|
||||
|
||||
private HistoryFileNameProvider historyFile = new DefaultHistoryFileNameProvider();
|
||||
|
||||
/**
|
||||
* Test method for {@link org.springframework.shell.plugin.support.DefaultHistoryFileNameProvider#getOrder()}.
|
||||
*/
|
||||
@Test
|
||||
public void testGetOrder() {
|
||||
Assert.assertTrue(historyFile.getOrder() == 0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Test method for {@link org.springframework.shell.plugin.support.DefaultHistoryFileNameProvider#getHistoryFileName()}.
|
||||
*/
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
*/
|
||||
package org.springframework.shell.plugin.support;
|
||||
|
||||
import static org.junit.Assert.*;
|
||||
import static org.junit.Assert.assertEquals;
|
||||
|
||||
import org.junit.AfterClass;
|
||||
import org.junit.BeforeClass;
|
||||
@@ -47,13 +47,6 @@ public class DefaultPromptProviderTest {
|
||||
prompt = null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Test method for {@link org.springframework.shell.plugin.support.DefaultPromptProvider#getOrder()}.
|
||||
*/
|
||||
@Test
|
||||
public void testGetOrder() {
|
||||
assertEquals(0, prompt.getOrder());
|
||||
}
|
||||
|
||||
/**
|
||||
* Test method for {@link org.springframework.shell.plugin.support.DefaultPromptProvider#getPromptText()}.
|
||||
|
||||
Reference in New Issue
Block a user