From bab23f22d6d642c4420e453f92c01f8fa94530ee Mon Sep 17 00:00:00 2001 From: mpollack Date: Thu, 20 Dec 2012 05:28:27 +0800 Subject: [PATCH] remove extraneous print comment in test --- src/test/java/org/springframework/shell/BootstrapTest.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/test/java/org/springframework/shell/BootstrapTest.java b/src/test/java/org/springframework/shell/BootstrapTest.java index 623b28cd..33154b68 100644 --- a/src/test/java/org/springframework/shell/BootstrapTest.java +++ b/src/test/java/org/springframework/shell/BootstrapTest.java @@ -16,8 +16,9 @@ public class BootstrapTest { try { Bootstrap bootstrap = new Bootstrap(null); JLineShellComponent shell = bootstrap.getJLineShellComponent(); - System.out.println("about to start shell..."); - Assert.assertEquals("Number of CommandMarkers is incorrect", 4, shell.getSimpleParser().getCommandMarkers().size()); + + //This is a brittle assertion - as additiona 'test' commands are added to the suite, this number will increase. + Assert.assertEquals("Number of CommandMarkers is incorrect", 5, shell.getSimpleParser().getCommandMarkers().size()); Assert.assertEquals("Number of Converters is incorrect", 16, shell.getSimpleParser().getConverters().size()); } catch (RuntimeException t) { throw t;