prompt text is read after each command exec

allows the prompt to be changed in dynamic envs
This commit is contained in:
Costin Leau
2012-07-29 19:50:30 +03:00
parent fc12a15bbf
commit 297c60f5ab
2 changed files with 10 additions and 2 deletions

View File

@@ -52,6 +52,6 @@ public class DefaultPromptProviderTest {
*/
@Test
public void testGetPromptText() {
assertEquals("spring-shell>", prompt.getPrompt());
assertTrue(prompt.getPrompt().startsWith("spring-shell>"));
}
}