rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
scmManager.checkOut( scmRepository, new ScmFileSet( scmFile.getParentFile() ), null ); scmManager.add( scmRepository, new ScmFileSet( scmFile.getParentFile(), scmFile ) );
File lastOne = mkdirs( basedir, scmRepository ); ScmResult result = scmManager.checkOut( scmRepository, new ScmFileSet( basedir ), null ); if ( !result.isSuccess() ) { throw new TransferFailedException( "Unable to checkout area to commit to " + result.getCommandOutput() ); } if ( lastOne != null ) { result = scmManage...
public void put( File source, String resourceName ) throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException { Resource resource = new Resource( resourceName ); firePutInitiated( resource, source ); String url = getRepository().getUrl() + "/" + resourceNam...
String msg = "Adding " + resourceName + " to repository"; scmManager.checkIn( scmRepository, new ScmFileSet( scmFile.getParentFile(), scmFile ), null, msg );
scmManager.add( scmRepository, new ScmFileSet( basedir, scmFile ) ); ScmResult result = scmManager.checkIn( scmRepository, new ScmFileSet( basedir, scmFile ), null, msg ); if ( !result.isSuccess() ) { throw new TransferFailedException( "Unable to commit file " + result.getCommandOutput() ); }
public void put( File source, String resourceName ) throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException { Resource resource = new Resource( resourceName ); firePutInitiated( resource, source ); String url = getRepository().getUrl() + "/" + resourceNam...
if (null == generatedCommand)
if (null == generatedCommand) {
public JMSCommand getGeneratedCommand() throws HJBException { if (null == generatedCommand) throw new IllegalStateException(strings().getString(HJBStrings.JMS_COMMAND_NOT_GENERATED)); return generatedCommand; }
}
public JMSCommand getGeneratedCommand() throws HJBException { if (null == generatedCommand) throw new IllegalStateException(strings().getString(HJBStrings.JMS_COMMAND_NOT_GENERATED)); return generatedCommand; }
CType[] actuals, CReferenceType[] substitution)
CType[] actuals)
public CMethod lookupMethod( CTypeContext context, CClass caller, CType primary, String ident, CType[] actuals, CReferenceType[] substitution) throws UnpositionedError { CMethod[] applicable = getApplicableMethods(context, ident, actuals); CMethod[] candidates = new CMethod[applicable.length]; int length =...
SimpleDateFormat formater = new SimpleDateFormat("dd/MM/yyyy");
SimpleDateFormat formater = new SimpleDateFormat("dd/MM/yyyy HH:mm:ss");
public void searchByMonth() throws Exception { SimpleDateFormat formater = new SimpleDateFormat("dd/MM/yyyy"); int month = Integer.parseInt(request.getParameter("month")); int year = Integer.parseInt(request.getParameter("year")); Calendar c = Calendar.getInstance(); Date firstPeriod, lastPeriod; firstPeriod = f...
firstPeriod = formater.parse("01/" + month + "/" + year);
firstPeriod = formater.parse("01/" + month + "/" + year+ " 00:00:00");
public void searchByMonth() throws Exception { SimpleDateFormat formater = new SimpleDateFormat("dd/MM/yyyy"); int month = Integer.parseInt(request.getParameter("month")); int year = Integer.parseInt(request.getParameter("year")); Calendar c = Calendar.getInstance(); Date firstPeriod, lastPeriod; firstPeriod = f...
lastPeriod = formater.parse(c.getActualMaximum(Calendar.DAY_OF_MONTH) + "/" + month + "/" + year);
lastPeriod = formater.parse(c.getActualMaximum(Calendar.DAY_OF_MONTH) + "/" + month + "/" + year +" 23:59:59");
public void searchByMonth() throws Exception { SimpleDateFormat formater = new SimpleDateFormat("dd/MM/yyyy"); int month = Integer.parseInt(request.getParameter("month")); int year = Integer.parseInt(request.getParameter("year")); Calendar c = Calendar.getInstance(); Date firstPeriod, lastPeriod; firstPeriod = f...
public StateLabeledSequence generate(int length)
public StatePath generate(int length)
public StateLabeledSequence generate(int length) throws IllegalResidueException, SeqException { List scoreList = new ArrayList(); SimpleResidueList tokens = new SimpleResidueList(model.queryAlphabet()); SimpleResidueList states = new SimpleResidueList(model.stateAlphabet()); double totScore = 0.0; dou...
return new SimpleStateLabeledSequence( tokens, states, new SimpleResidueList(DoubleAlphabet.INSTANCE, scoreList), this, totScore, null );
List resListList = new ArrayList(3); resListList.add(tokens); resListList.add(states); resListList.add(new SimpleResidueList(DoubleAlphabet.INSTANCE, scoreList)); Map labelToResList = new HashMap(); labelToResList.put(StatePath.SEQUENCE, tokens); labelToResList.put(StatePath.STATES, states); labelToResList.put(StatePa...
public StateLabeledSequence generate(int length) throws IllegalResidueException, SeqException { List scoreList = new ArrayList(); SimpleResidueList tokens = new SimpleResidueList(model.queryAlphabet()); SimpleResidueList states = new SimpleResidueList(model.stateAlphabet()); double totScore = 0.0; dou...
public StateLabeledSequence viterbi(ResidueList seq)
public StatePath viterbi(ResidueList seq)
public StateLabeledSequence viterbi(ResidueList seq) throws IllegalResidueException { DPCursor dpCursor = new SmallCursor(states, seq.length(), seq.iterator()); return viterbi(dpCursor, seq); }
btnRefresh.setMnemonic('r');
btnRefresh.setMnemonic(java.util.ResourceBundle.getBundle("com/javaimagealbum/resources/MnemonicResource").getString("Refresh_Folder").charAt(0));
private void initComponents() { java.awt.GridBagConstraints gridBagConstraints; lblTitle = new javax.swing.JLabel(); pnlContents = new javax.swing.JPanel(); tpInstructions = new javax.swing.JTextPane(); pnlCenter = new javax.swing.JPanel(); spScroll = new javax.swing.JScrol...
btnBrowse.setMnemonic('w');
btnBrowse.setMnemonic(java.util.ResourceBundle.getBundle("com/javaimagealbum/resources/MnemonicResource").getString("Browse").charAt(0));
private void initComponents() { java.awt.GridBagConstraints gridBagConstraints; lblTitle = new javax.swing.JLabel(); pnlContents = new javax.swing.JPanel(); tpInstructions = new javax.swing.JTextPane(); pnlCenter = new javax.swing.JPanel(); spScroll = new javax.swing.JScrol...
return LayeredRenderer.INSTANCE.processMouseEvent(
SequenceViewerEvent sve = LayeredRenderer.INSTANCE.processMouseEvent(
public SequenceViewerEvent processMouseEvent( SequenceRenderContext src, MouseEvent me, List path, int min, int max ) { path.add(this); return LayeredRenderer.INSTANCE.processMouseEvent( Collections.nCopies(renderers.size(), src), me, path, min, max, renderers ); }
if(sve == null) { sve = new SequenceViewerEvent( this, null, src.graphicsToSequence(me.getPoint()), me, path ); } return sve;
public SequenceViewerEvent processMouseEvent( SequenceRenderContext src, MouseEvent me, List path, int min, int max ) { path.add(this); return LayeredRenderer.INSTANCE.processMouseEvent( Collections.nCopies(renderers.size(), src), me, path, min, max, renderers ); }
System.out.println("SUBJECT: " + mailSubject);
protected void sendMail(MailType kind, VelocityContext vctx, String email) { StringWriter writer = new StringWriter(4096); try { Velocity.mergeTemplate(kind.getTemplate(), "UTF-8", vctx, writer); } catch (Exception ex) { log.fatal("Error merging " + kind.getTemplate(), ex); throw new EJBException(ex); }...
message( "Putting test artifact into test repository " + testRepository );
message( "Putting test artifact: " + resource + " into test repository " + testRepository );
protected void putFile() throws Exception { message( "Putting test artifact into test repository " + testRepository ); Wagon wagon = getWagon(); wagon.addTransferListener( checksumObserver ); wagon.connect( testRepository ); sourceFile = new File( basedir, POM ); ...
code.getLineNumbers(),
lineNumbers,
private CodeInfo genByteCode(TypeFactory factory) { CodeSequence code = CodeSequence.getCodeSequence(); GenerationContext context = new GenerationContext(factory, code); LocalVariableScope scope = new LocalVariableScope(); code.pushLocalVariableScope(scope); // add "this" to local variable in...
;
public void execute(Task task) { try { task.execute(); } catch(Exception e) { ; //if they don't care, why should I? } }
} catch (NestedException ne) {
} catch (SearchException e) {
public void hit( int hitID, int queryOffset, int hitOffset, int hitLength ) { try { String hitName = dataStore.seqNameForID(hitID); System.out.println(seqID + " " + hitName + " " + queryOffset + " " + hitOffset + " " + hitLength); } catch (NestedException ne) { } }
public Object execute() throws Exception
public Object execute()
public Object execute() throws Exception { if (this.spammer.dispatchMessages()) { return "SUCCESS"; } return "FAILURE"; }
if (this.spammer.dispatchMessages()) { return "SUCCESS"; } return "FAILURE"; }
try { if (this.spammer.dispatchMessages()) { return "SUCCESS"; } return "FAILURE"; } catch (Exception e) { String es = "Erorr execute()"; log.error(es, e); throw new RuntimeException(es, e); } }
public Object execute() throws Exception { if (this.spammer.dispatchMessages()) { return "SUCCESS"; } return "FAILURE"; }
catch (Exception e) { throw new ForumStartupException("Error while starting jforum", e);
catch (Throwable e) { e.printStackTrace(); throw new ForumStartupException("Error while starting jforum", e);
public void init(ServletConfig config) throws ServletException { super.init(config); super.startFrontController(); // Start database isDatabaseUp = ForumStartup.startDatabase(); try { Connection conn = DBConnection.getImplementation().getConnection(); conn.setAutoCommit(!SystemGlobals.getBoolValue(ConfigK...
firePutCompleted( resource, source );
public void put( File source, String resourceName ) throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException { String url = getRepository().getUrl() + "/" + resourceName; PutMethod putMethod = new PutMethod( url ); Resource resource = new Resource( resourc...
listener.startElement(biojavaUri, "HSP", biojavaUri + ":HSP", new AttributesImpl());
staxenv.listener.startElement(biojavaUri, "HSP", biojavaUri + ":HSP", new AttributesImpl());
public void endElementHandler( String nsURI, String localName, String qName, StAXContentHandler handler) throws SAXException { // only generate the element if key parts are present if ((iNumberOfIdentities == Integer.MIN_VALUE) || (...
listener.startElement(biojavaUri, "HSPSummary", biojavaUri + ":" + "HSPSummary", hspAttrs); listener.endElement(biojavaUri, "HSPSummary", biojavaUri + ":" + "HSPSummary");
staxenv.listener.startElement(biojavaUri, "HSPSummary", biojavaUri + ":" + "HSPSummary", hspAttrs); staxenv.listener.endElement(biojavaUri, "HSPSummary", biojavaUri + ":" + "HSPSummary");
public void endElementHandler( String nsURI, String localName, String qName, StAXContentHandler handler) throws SAXException { // only generate the element if key parts are present if ((iNumberOfIdentities == Integer.MIN_VALUE) || (...
listener.startElement(biojavaUri, "BlastLikeAlignment", biojavaUri + ":BlastLikeAlignment", new AttributesImpl());
staxenv.listener.startElement(biojavaUri, "BlastLikeAlignment", biojavaUri + ":BlastLikeAlignment", new AttributesImpl());
public void endElementHandler( String nsURI, String localName, String qName, StAXContentHandler handler) throws SAXException { // only generate the element if key parts are present if ((iNumberOfIdentities == Integer.MIN_VALUE) || (...
listener.startElement(biojavaUri, "QuerySequence", biojavaUri + ":QuerySequence", queryAttrs);
staxenv.listener.startElement(biojavaUri, "QuerySequence", biojavaUri + ":QuerySequence", queryAttrs);
public void endElementHandler( String nsURI, String localName, String qName, StAXContentHandler handler) throws SAXException { // only generate the element if key parts are present if ((iNumberOfIdentities == Integer.MIN_VALUE) || (...
listener.characters(sHsp_qseq.toCharArray(), 0, sHsp_qseq.length());
staxenv.listener.characters(sHsp_qseq.toCharArray(), 0, sHsp_qseq.length());
public void endElementHandler( String nsURI, String localName, String qName, StAXContentHandler handler) throws SAXException { // only generate the element if key parts are present if ((iNumberOfIdentities == Integer.MIN_VALUE) || (...
listener.endElement(biojavaUri, "QuerySequence", biojavaUri + ":QuerySequence");
staxenv.listener.endElement(biojavaUri, "QuerySequence", biojavaUri + ":QuerySequence");
public void endElementHandler( String nsURI, String localName, String qName, StAXContentHandler handler) throws SAXException { // only generate the element if key parts are present if ((iNumberOfIdentities == Integer.MIN_VALUE) || (...
listener.startElement(biojavaUri, "MatchConsensus", biojavaUri + ":MatchConsensus", matchAttrs);
staxenv.listener.startElement(biojavaUri, "MatchConsensus", biojavaUri + ":MatchConsensus", matchAttrs);
public void endElementHandler( String nsURI, String localName, String qName, StAXContentHandler handler) throws SAXException { // only generate the element if key parts are present if ((iNumberOfIdentities == Integer.MIN_VALUE) || (...
listener.characters(sHsp_midline.toCharArray(), 0, sHsp_midline.length());
staxenv.listener.characters(sHsp_midline.toCharArray(), 0, sHsp_midline.length());
public void endElementHandler( String nsURI, String localName, String qName, StAXContentHandler handler) throws SAXException { // only generate the element if key parts are present if ((iNumberOfIdentities == Integer.MIN_VALUE) || (...
listener.endElement(biojavaUri, "MatchConsensus", biojavaUri + ":MatchConsensus");
staxenv.listener.endElement(biojavaUri, "MatchConsensus", biojavaUri + ":MatchConsensus");
public void endElementHandler( String nsURI, String localName, String qName, StAXContentHandler handler) throws SAXException { // only generate the element if key parts are present if ((iNumberOfIdentities == Integer.MIN_VALUE) || (...
listener.startElement(biojavaUri, "HitSequence", "HitSequence", hitAttrs);
staxenv.listener.startElement(biojavaUri, "HitSequence", "HitSequence", hitAttrs);
public void endElementHandler( String nsURI, String localName, String qName, StAXContentHandler handler) throws SAXException { // only generate the element if key parts are present if ((iNumberOfIdentities == Integer.MIN_VALUE) || (...
listener.characters(sHsp_hseq.toCharArray(), 0, sHsp_hseq.length());
staxenv.listener.characters(sHsp_hseq.toCharArray(), 0, sHsp_hseq.length());
public void endElementHandler( String nsURI, String localName, String qName, StAXContentHandler handler) throws SAXException { // only generate the element if key parts are present if ((iNumberOfIdentities == Integer.MIN_VALUE) || (...
listener.endElement(biojavaUri, "HitSequence", biojavaUri + ":HitSequence");
staxenv.listener.endElement(biojavaUri, "HitSequence", biojavaUri + ":HitSequence");
public void endElementHandler( String nsURI, String localName, String qName, StAXContentHandler handler) throws SAXException { // only generate the element if key parts are present if ((iNumberOfIdentities == Integer.MIN_VALUE) || (...
listener.endElement(biojavaUri, "BlastLikeAlignment", biojavaUri + ":BlastLikeAlignment");
staxenv.listener.endElement(biojavaUri, "BlastLikeAlignment", biojavaUri + ":BlastLikeAlignment");
public void endElementHandler( String nsURI, String localName, String qName, StAXContentHandler handler) throws SAXException { // only generate the element if key parts are present if ((iNumberOfIdentities == Integer.MIN_VALUE) || (...
listener.endElement(biojavaUri, "HSP", biojavaUri + ":HSP");
staxenv.listener.endElement(biojavaUri, "HSP", biojavaUri + ":HSP");
public void endElementHandler( String nsURI, String localName, String qName, StAXContentHandler handler) throws SAXException { // only generate the element if key parts are present if ((iNumberOfIdentities == Integer.MIN_VALUE) || (...
FjClassContext classContext = (FjClassContext) context; if (this.originalClass != null) { classContext = (FjClassContext) originalClass.constructContext( originalClass.getContext().getCompilationUnitContext()); }
FjClassContext classContext = (FjClassContext)getPointcutContext(context);
public CaesarMember resolve( CClassContext context, CClass caller, JFormalParameter[] formalParameters, TokenReference tokenReference) { List parameterSignatures = new ArrayList(); List formalBindings = new ArrayList(); for (int i = 0; i < parameters.length; i++) { if (!formalParameters[i].isGenerated()) { ...
public void add(Bookmark b) throws Exception
public void add(Bookmark b)
public void add(Bookmark b) throws Exception { PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("BookmarkModel.add")); p.setInt(1, b.getUserId()); p.setInt(2, b.getRelationId()); p.setInt(3, b.getRelationType()); p.setInt(4, b.isPublicVisible() ? 1 : 0); p.se...
PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("BookmarkModel.add")); p.setInt(1, b.getUserId()); p.setInt(2, b.getRelationId()); p.setInt(3, b.getRelationType()); p.setInt(4, b.isPublicVisible() ? 1 : 0); p.setString(5, b.getTitle()); p.setString(6, b.getDescription...
PreparedStatement p=null; try { p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("BookmarkModel.add")); p.setInt(1, b.getUserId()); p.setInt(2, b.getRelationId()); p.setInt(3, b.getRelationType()); p.setInt(4, b.isPublicVisible() ? 1 : 0); p.setString(5, b.getTitle()); p.setString(6, b....
public void add(Bookmark b) throws Exception { PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("BookmarkModel.add")); p.setInt(1, b.getUserId()); p.setInt(2, b.getRelationId()); p.setInt(3, b.getRelationType()); p.setInt(4, b.isPublicVisible() ? 1 : 0); p.se...
protected Bookmark getBookmark(ResultSet rs) throws Exception
protected Bookmark getBookmark(ResultSet rs) throws SQLException
protected Bookmark getBookmark(ResultSet rs) throws Exception { Bookmark b = new Bookmark(); b.setId(rs.getInt("bookmark_id")); b.setDescription(rs.getString("description")); b.setPublicVisible(rs.getInt("public_visible") == 1 ? true : false); b.setRelationId(rs.getInt("relation_id")); b.setTitle(rs.getString("t...
b.setPublicVisible(rs.getInt("public_visible") == 1 ? true : false);
b.setPublicVisible(rs.getInt("public_visible") == 1);
protected Bookmark getBookmark(ResultSet rs) throws Exception { Bookmark b = new Bookmark(); b.setId(rs.getInt("bookmark_id")); b.setDescription(rs.getString("description")); b.setPublicVisible(rs.getInt("public_visible") == 1 ? true : false); b.setRelationId(rs.getInt("relation_id")); b.setTitle(rs.getString("t...
protected List getForums(int userId) throws Exception
protected List getForums(int userId)
protected List getForums(int userId) throws Exception { List l = new ArrayList(); PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("BookmarkModel.selectForumBookmarks")); p.setInt(1, userId); ResultSet rs = p.executeQuery(); while (rs.next()) { Bookmark b ...
List l = new ArrayList(); PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("BookmarkModel.selectForumBookmarks")); p.setInt(1, userId); ResultSet rs = p.executeQuery(); while (rs.next()) { Bookmark b = this.getBookmark(rs); if (b.getTitle() == null || "".equals(b.get...
PreparedStatement p=null; ResultSet rs=null; try { List l = new ArrayList(); p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("BookmarkModel.selectForumBookmarks")); p.setInt(1, userId); rs = p.executeQuery(); while (rs.next()) { Bookmark b = this.getBookmark(rs); if (b.getTitle() == ...
protected List getForums(int userId) throws Exception { List l = new ArrayList(); PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("BookmarkModel.selectForumBookmarks")); p.setInt(1, userId); ResultSet rs = p.executeQuery(); while (rs.next()) { Bookmark b ...
protected List getTopics(int userId) throws Exception
protected List getTopics(int userId)
protected List getTopics(int userId) throws Exception { List l = new ArrayList(); PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("BookmarkModel.selectTopicBookmarks")); p.setInt(1, userId); ResultSet rs = p.executeQuery(); while (rs.next()) { Bookmark b ...
List l = new ArrayList(); PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("BookmarkModel.selectTopicBookmarks")); p.setInt(1, userId); ResultSet rs = p.executeQuery(); while (rs.next()) { Bookmark b = this.getBookmark(rs); if (b.getTitle() == null || "".equals(b.get...
PreparedStatement p=null; ResultSet rs=null; try { List l = new ArrayList(); p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("BookmarkModel.selectTopicBookmarks")); p.setInt(1, userId); rs = p.executeQuery(); while (rs.next()) { Bookmark b = this.getBookmark(rs); if (b.getTitle() == ...
protected List getTopics(int userId) throws Exception { List l = new ArrayList(); PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("BookmarkModel.selectTopicBookmarks")); p.setInt(1, userId); ResultSet rs = p.executeQuery(); while (rs.next()) { Bookmark b ...
protected List getUsers(int userId) throws Exception
protected List getUsers(int userId)
protected List getUsers(int userId) throws Exception { List l = new ArrayList(); PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("BookmarkModel.selectUserBookmarks")); p.setInt(1, userId); ResultSet rs = p.executeQuery(); while (rs.next()) { Bookmark b = ...
PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("BookmarkModel.selectUserBookmarks")); p.setInt(1, userId); ResultSet rs = p.executeQuery(); while (rs.next()) { Bookmark b = this.getBookmark(rs); if (b.getTitle() == null || "".equals(b.getTitle())) { b.setTitle(rs.g...
PreparedStatement p=null; ResultSet rs=null; try { p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("BookmarkModel.selectUserBookmarks")); p.setInt(1, userId); rs = p.executeQuery(); while (rs.next()) { Bookmark b = this.getBookmark(rs); if (b.getTitle() == null || "".equals(b.getTitl...
protected List getUsers(int userId) throws Exception { List l = new ArrayList(); PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("BookmarkModel.selectUserBookmarks")); p.setInt(1, userId); ResultSet rs = p.executeQuery(); while (rs.next()) { Bookmark b = ...
public void remove(int bookmarkId) throws Exception
public void remove(int bookmarkId)
public void remove(int bookmarkId) throws Exception { PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("BookmarkModel.remove")); p.setInt(1, bookmarkId); p.executeUpdate(); p.close(); }
PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("BookmarkModel.remove")); p.setInt(1, bookmarkId); p.executeUpdate(); p.close();
PreparedStatement p=null; try { p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("BookmarkModel.remove")); p.setInt(1, bookmarkId); p.executeUpdate(); } catch (SQLException e) { String es = "Erorr remove()"; log.error(es, e); throw new RuntimeException(es, e); } finally { DbUtils.close(...
public void remove(int bookmarkId) throws Exception { PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("BookmarkModel.remove")); p.setInt(1, bookmarkId); p.executeUpdate(); p.close(); }
public Bookmark selectById(int bookmarkId) throws Exception
public Bookmark selectById(int bookmarkId)
public Bookmark selectById(int bookmarkId) throws Exception { Bookmark b = null; PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("BookmarkModel.selectById")); p.setInt(1, bookmarkId); ResultSet rs = p.executeQuery(); if (rs.next()) { b = this.getBookmar...
PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("BookmarkModel.selectById")); p.setInt(1, bookmarkId); ResultSet rs = p.executeQuery(); if (rs.next()) { b = this.getBookmark(rs); } rs.close(); p.close(); return b; }
PreparedStatement p=null; ResultSet rs=null; try { p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("BookmarkModel.selectById")); p.setInt(1, bookmarkId); rs = p.executeQuery(); if (rs.next()) { b = this.getBookmark(rs); } return b; } catch (SQLException e) { String es = "Erorr select...
public Bookmark selectById(int bookmarkId) throws Exception { Bookmark b = null; PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("BookmarkModel.selectById")); p.setInt(1, bookmarkId); ResultSet rs = p.executeQuery(); if (rs.next()) { b = this.getBookmar...
public List selectByUser(int userId, int relationType) throws Exception
public List selectByUser(int userId, int relationType)
public List selectByUser(int userId, int relationType) throws Exception { if (relationType == BookmarkType.FORUM) { return this.getForums(userId); } else if (relationType == BookmarkType.TOPIC) { return this.getTopics(userId); } else if (relationType == BookmarkType.USER) { return this.getUsers(userId); } ...
public Bookmark selectForUpdate(int relationId, int relationType, int userId) throws Exception
public Bookmark selectForUpdate(int relationId, int relationType, int userId)
public Bookmark selectForUpdate(int relationId, int relationType, int userId) throws Exception { PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("BookmarkModel.selectForUpdate")); p.setInt(1, relationId); p.setInt(2, relationType); p.setInt(3, userId); Book...
PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("BookmarkModel.selectForUpdate")); p.setInt(1, relationId); p.setInt(2, relationType); p.setInt(3, userId); Bookmark b = null; ResultSet rs = p.executeQuery(); if (rs.next()) { b = this.getBookmark(rs); } rs.close(); p...
PreparedStatement p=null; ResultSet rs=null; try { p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("BookmarkModel.selectForUpdate")); p.setInt(1, relationId); p.setInt(2, relationType); p.setInt(3, userId); Bookmark b = null; rs = p.executeQuery(); if (rs.next()) { b = this.getBookmar...
public Bookmark selectForUpdate(int relationId, int relationType, int userId) throws Exception { PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("BookmarkModel.selectForUpdate")); p.setInt(1, relationId); p.setInt(2, relationType); p.setInt(3, userId); Book...
public void update(Bookmark b) throws Exception
public void update(Bookmark b)
public void update(Bookmark b) throws Exception { PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("BookmarkModel.update")); p.setInt(1, b.isPublicVisible() ? 1 : 0); p.setString(2, b.getTitle()); p.setString(3, b.getDescription()); p.setInt(4, b.getId()); p....
PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("BookmarkModel.update")); p.setInt(1, b.isPublicVisible() ? 1 : 0); p.setString(2, b.getTitle()); p.setString(3, b.getDescription()); p.setInt(4, b.getId()); p.executeUpdate(); p.close(); }
PreparedStatement p=null; try { p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("BookmarkModel.update")); p.setInt(1, b.isPublicVisible() ? 1 : 0); p.setString(2, b.getTitle()); p.setString(3, b.getDescription()); p.setInt(4, b.getId()); p.executeUpdate(); } catch (SQLException e) { St...
public void update(Bookmark b) throws Exception { PreparedStatement p = JForumExecutionContext.getConnection().prepareStatement( SystemGlobals.getSql("BookmarkModel.update")); p.setInt(1, b.isPublicVisible() ? 1 : 0); p.setString(2, b.getTitle()); p.setString(3, b.getDescription()); p.setInt(4, b.getId()); p....
return new URL(defaultServer, defaultCGI + "?" + query);
return new URL(defaultServer + defaultCGI + "?" + query);
protected URL getAddress(String id) throws MalformedURLException { String query = "view=gb&txt=on&db=nucleotide&form=1&title=no&term=" + id; return new URL(defaultServer, defaultCGI + "?" + query); }
System.err.println(logger.isDebugEnabled());
public Site(Object host) { accessTimes = new TreeMap(); files = new HashMap(); long quota = Long.MAX_VALUE; if (host instanceof BoundContact) { BoundContact bc = (BoundContact) host; Object ss = bc.getProperty(VDL2Profile.KEY_STORAGE_SIZE); if (ss != null) { quota = TypeUtil.toLong(ss); if (quota < 0) ...
setGraphicsOrigin(FUDGE_OFFSET-sequenceToGraphics(range.getMin()));
public void mouseClicked(MouseEvent me) { if(!isActive()) { return; } setGraphicsOrigin(FUDGE_OFFSET-sequenceToGraphics(range.getMin())); int [] dist = calcDist(); me.translatePoint(+dist[0], +dist[1]); SequenceViewerEvent sve = renderer.processMouseEvent( SequencePanel.t...
setGraphicsOrigin(FUDGE_OFFSET-sequenceToGraphics(range.getMin()));
public void mousePressed(MouseEvent me) { if(!isActive()) { return; } setGraphicsOrigin(FUDGE_OFFSET-sequenceToGraphics(range.getMin())); int [] dist = calcDist(); me.translatePoint(+dist[0], +dist[1]); SequenceViewerEvent sve = renderer.processMouseEvent( SequencePanel.t...
setGraphicsOrigin(FUDGE_OFFSET-sequenceToGraphics(range.getMin()));
public void mouseReleased(MouseEvent me) { if(!isActive()) { return; } setGraphicsOrigin(FUDGE_OFFSET-sequenceToGraphics(range.getMin())); int [] dist = calcDist(); me.translatePoint(+dist[0], +dist[1]); SequenceViewerEvent sve = renderer.processMouseEvent( SequencePanel....
setGraphicsOrigin(FUDGE_OFFSET-sequenceToGraphics(range.getMin()));
public void mouseDragged(MouseEvent me) { if(!isActive()) { return; } setGraphicsOrigin(FUDGE_OFFSET-sequenceToGraphics(range.getMin())); int [] dist = calcDist(); me.translatePoint(+dist[0], +dist[1]); SequenceViewerEvent sve = renderer.processMouseEvent( SequencePanel.t...
setGraphicsOrigin(FUDGE_OFFSET-sequenceToGraphics(range.getMin()));
public void mouseMoved(MouseEvent me) { if(!isActive()) { return; } setGraphicsOrigin(FUDGE_OFFSET-sequenceToGraphics(range.getMin())); int [] dist = calcDist(); me.translatePoint(+dist[0], +dist[1]); SequenceViewerEvent sve = renderer.processMouseEvent( SequencePanel.thi...
setGraphicsOrigin(FUDGE_OFFSET-sequenceToGraphics(range.getMin()));
adjustOffset(sequenceToGraphics(range.getMin()));
public synchronized void paintComponent(Graphics g) { if(!isActive()) { return; } Graphics2D g2 = (Graphics2D) g; AffineTransform oldTransform = g2.getTransform(); Rectangle2D currentClip = g2.getClip().getBounds2D(); // do a transform to offset drawing to the neighbourhood of zero. // t...
public static void prepareForDynamicDeployment(JCompilationUnit cu) {
public static void prepareForDynamicDeployment(JCompilationUnit cu) throws PositionedError {
public static void prepareForDynamicDeployment(JCompilationUnit cu) { boolean bNewDelarations = false; CContext ownerCtx = cu.getContext(); for (JTypeDeclaration typeDecl : cu.getInners()) { if (typeDecl instanceof CjVirtualClassDeclaration) { CjVirtualClassDeclaration caesarClass = (CjVirtualClassDec...
try { aspectIfc.join(ownerCtx); registryCls.join(ownerCtx); caesarClass.getMixinIfcDeclaration().join(ownerCtx); } catch (PositionedError err) { System.out.println(err.getMessage()); }
aspectIfc.join(ownerCtx); registryCls.join(ownerCtx); caesarClass.getMixinIfcDeclaration().join(ownerCtx);
public static void prepareForDynamicDeployment(JCompilationUnit cu) { boolean bNewDelarations = false; CContext ownerCtx = cu.getContext(); for (JTypeDeclaration typeDecl : cu.getInners()) { if (typeDecl instanceof CjVirtualClassDeclaration) { CjVirtualClassDeclaration caesarClass = (CjVirtualClassDec...
private static void rejoinMixinInterfaces(JTypeDeclaration[] decl, CContext ownerCtx) {
private static void rejoinMixinInterfaces(JTypeDeclaration[] decl, CContext ownerCtx) throws PositionedError {
private static void rejoinMixinInterfaces(JTypeDeclaration[] decl, CContext ownerCtx) { for (int i = 0; i < decl.length; i++) { if (decl[i] instanceof CjVirtualClassDeclaration) { CjVirtualClassDeclaration caesarClass = (CjVirtualClassDeclaration)decl[i]; if (caesarClass.isCrosscutting()) { try { cae...
try { caesarClass.getMixinIfcDeclaration().join(ownerCtx); } catch (PositionedError err) { System.out.println(err.getMessage()); }
caesarClass.getMixinIfcDeclaration().join(ownerCtx);
private static void rejoinMixinInterfaces(JTypeDeclaration[] decl, CContext ownerCtx) { for (int i = 0; i < decl.length; i++) { if (decl[i] instanceof CjVirtualClassDeclaration) { CjVirtualClassDeclaration caesarClass = (CjVirtualClassDeclaration)decl[i]; if (caesarClass.isCrosscutting()) { try { cae...
+ "acknowledgement-mode=(int 1)" + CR
+ "\tacknowledgement-mode=(int 1), "
public void testLongDescriptionIncludeSessionAttributes() { mockSession.stubs() .method("getAcknowledgeMode") .will(returnValue(Session.AUTO_ACKNOWLEDGE)); SessionDescription testDescription = new SessionDescription(testHJBSession); String expectedOutput = testDescription....
+ defaultClockTimeAsHJBEncodedLong() + CR + "transacted=(boolean true)";
+ defaultClockTimeAsHJBEncodedLong() + ", transacted=(boolean true)";
public void testLongDescriptionIncludeSessionAttributes() { mockSession.stubs() .method("getAcknowledgeMode") .will(returnValue(Session.AUTO_ACKNOWLEDGE)); SessionDescription testDescription = new SessionDescription(testHJBSession); String expectedOutput = testDescription....
boolean aa = br.readLine().indexOf('A')>0;
String firstLine = br.readLine(); boolean dna = (firstLine.indexOf("DNA") >0 || firstLine.indexOf("RNA") > 0);
public SymbolTokenization guessSymbolTokenization(File file) throws IOException { BufferedReader br = new BufferedReader(new FileReader(file)); boolean aa = br.readLine().indexOf('A')>0; br.close(); if (aa) return RichSequence.IOTools.getProteinParser(); else return RichSequence.I...
if (aa) return RichSequence.IOTools.getProteinParser(); else return RichSequence.IOTools.getDNAParser();
if (dna) return RichSequence.IOTools.getDNAParser(); else return RichSequence.IOTools.getProteinParser();
public SymbolTokenization guessSymbolTokenization(File file) throws IOException { BufferedReader br = new BufferedReader(new FileReader(file)); boolean aa = br.readLine().indexOf('A')>0; br.close(); if (aa) return RichSequence.IOTools.getProteinParser(); else return RichSequence.I...
public void print(String indentArg, IProgramElement node) { this.out.print(indentArg); printNodeHeader(this.out, node); if(node instanceof CaesarProgramElement){ this.out.print(node.toString()); this.out.println(); } else if (node instanceof ProgramElement) { ProgramElement peNode = (ProgramElement) node; this.out.pr...
public void print(CaesarJAsmManager asmManager) { print("", asmManager.getHierarchy().getRoot()); printRelationshipMap(asmManager);
public void print(String indentArg, IProgramElement node) { this.out.print(indentArg); printNodeHeader(this.out, node); if(node instanceof CaesarProgramElement){ this.out.print(node.toString()); this.out.println(); } else if (node instanceof ProgramElement) { ProgramElement peNode = (ProgramElement) node; ...
setFault(e);
recordFault(e);
public void execute() { assertNotCompleted(); try { createBrowserAndSaveItsIndex(); } catch (RuntimeException e) { setFault(e); } completed(); }
setFault(e);
recordFault(e);
public void execute() { assertNotCompleted(); try { getTheConnection().getSession(getSessionIndex()).rollback(); } catch (RuntimeException e) { setFault(e); } catch (JMSException e) { LOG.error(e); setFault(new HJBException(e)); } ...
LOG.error(e); setFault(new HJBException(e));
recordFault(new HJBException(e));
public void execute() { assertNotCompleted(); try { getTheConnection().getSession(getSessionIndex()).rollback(); } catch (RuntimeException e) { setFault(e); } catch (JMSException e) { LOG.error(e); setFault(new HJBException(e)); } ...
result.put("" + count, i.next());
result.put(new Integer(count), i.next());
protected Map asMap(List encodedValues) { Map result = new TreeMap(); int count = 0; for (Iterator i = encodedValues.iterator(); i.hasNext(); count++) { result.put("" + count, i.next()); } return result; }
System.err.println("Encoded values: " + encodedValues);
if (LOG.isDebugEnabled()) { LOG.debug("Encoded values read from the Stream Message: " + encodedValues); }
protected void copyPayLoadToHJBMessage(StreamMessage source, HJBMessage target) throws HJBException { OrderedStreamMessageValueCopier copier = new OrderedStreamMessageValueCopier(new LinkedList()); List encodedValues = new ArrayList(); while ...
if ((modifiers & ACC_ABSTRACT) == 0) { try{
if (((modifiers & ACC_ABSTRACT) == 0)&&!checked) {
public ResolvedPointcutDefinition resolve( CClassContext context, CClass caller, JFormalParameter[] formalParameters, TokenReference tokenReference) { List parameterTypes = new ArrayList(); List formalBindings = new ArrayList(); for (int i = 0; i < parameters.length; i++) { if (!formalParameters[i].isGenerate...
}catch(org.aspectj.weaver.BCException e){ System.out.println(e+ " in pointcut " +pointcut); }
public ResolvedPointcutDefinition resolve( CClassContext context, CClass caller, JFormalParameter[] formalParameters, TokenReference tokenReference) { List parameterTypes = new ArrayList(); List formalBindings = new ArrayList(); for (int i = 0; i < parameters.length; i++) { if (!formalParameters[i].isGenerate...
getRobocodeEditorMenuBar().getMoreWindowsDialog().removeWindowItem(item); break;
public void removeFromWindowMenu(EditWindow window) { Component[] components = getRobocodeEditorMenuBar().getWindowMenu().getMenuComponents(); for (int i = 0; i < components.length; i++) { if (components[i] instanceof WindowMenuItem) { WindowMenuItem item = (WindowMenuItem) components[i]; if (item.getEditWin...
throw new NestedError("couldn't train distribution");
throw new AssertionFailure("couldn't train distribution");
public static void main(String [] args) { try { // verify arguments if (args.length != 2) { System.out.println("Usage: java dist/TestOrderNDistribution <test seq length> <order>"); System.exit(1); } SymbolList res = Tools.createSymbolList(Integer.parseInt(args[0]))...
if (LOG.isDebugEnabled()) { String message = strings().getString(HJBStrings.IGNORE_AND_DEFAULT_WARNING, "acknowledgement mode", rawValue, new Integer(HJBConstants.DEFAULT_ACKNOWLEDGEMENT_MODE)); LOG.debug(message); } return HJBConstants.DEFAULT_ACKNOWLEDGEMENT_MODE;
Integer defaultValue = new Integer(HJBConstants.DEFAULT_ACKNOWLEDGEMENT_MODE); warnAboutUsingDefault("acknowledgement mode", rawValue, defaultValue); return defaultValue.intValue();
public int findAcknowledgementMode(Map decodedParameters) { Integer rawValue = findInteger(decodedParameters, HJBConstants.SESSION_ACKNOWLEDGEMENT_MODE, "acknowledgement mode", new Integer(HJBCon...
if (LOG.isDebugEnabled()) { String message = strings().getString(HJBStrings.IGNORE_AND_DEFAULT_WARNING, name, rawValue, defaultValue); LOG.debug(message); }
warnAboutUsingDefault(name, rawValue, defaultValue);
protected Boolean findBoolean(Map decodedParameters, String key, String name, Object defaultValue) { Object rawValue = decodedParameters.get(key); if (!(rawValue instanceof Boolean)) { if (LOG...
if (LOG.isDebugEnabled()) { String message = strings().getString(HJBStrings.IGNORE_AND_DEFAULT_WARNING, "delivery mode", rawValue, null); LOG.debug(message); }
warnAboutUsingDefault("delivery mode", rawValue, null);
public Integer findDeliveryMode(Map decodedParameters) { Integer rawValue = findInteger(decodedParameters, HJBConstants.DELIVERY_MODE, "delivery mode", null); if (null == rawValue) return ...
if (LOG.isDebugEnabled()) { String message = strings().getString(HJBStrings.IGNORE_AND_DEFAULT_WARNING, name, rawValue, defaultValue); LOG.debug(message); }
warnAboutUsingDefault(name, rawValue, defaultValue);
protected Integer findInteger(Map decodedParameters, String key, String name, Object defaultValue) { Object rawValue = decodedParameters.get(key); if (!(rawValue instanceof Integer)) { if (LOG...
if (LOG.isDebugEnabled()) { String message = strings().getString(HJBStrings.IGNORE_AND_DEFAULT_WARNING, name, rawValue, defaultValue); LOG.debug(message); }
warnAboutUsingDefault(name, rawValue, defaultValue);
protected Long findLong(Map decodedParameters, String key, String name, Object defaultValue) { Object rawValue = decodedParameters.get(key); if (!(rawValue instanceof Long)) { if (LOG.isDebugEnabled()) { ...
if (LOG.isDebugEnabled()) { String message = strings().getString(HJBStrings.IGNORE_AND_DEFAULT_WARNING, "priority", rawValue, null); LOG.debug(message); }
warnAboutUsingDefault("priority", rawValue, null);
public Integer findPriority(Map decodedParameters) { Integer rawValue = findInteger(decodedParameters, HJBConstants.PRIORITY, "priority", null); if (null == rawValue) return null; i...
return;
public void execute(String commandString, ConnectionContext context) throws IOException { String args = getArgPredicate(commandString); if ("".equals(args)) { context.sendResponse(getCommandMessage((SMTPServer)context.getServer())); } try { context.sendResponse(getHelp(args).toOutputString()); } catch (Com...
else if (start > selection.getOffset()) { start = selection.getOffset(); }
public void run() { Region selection = mEditor.getSelection(); SexpExplorer explorer = mEditor.getExplorer(); if (explorer.forwardSexpression(selection.getOffset() + selection.getLength())) { int start = explorer.getSexpStart(); int end = explorer.getSexpEnd(); ...
out.println(serverContext.getCommandDispatcher().executeCommand(command, session)); out.flush();
out.print(serverContext.getCommandDispatcher().executeCommand(command, session)); out.print("\r\n"); out.flush();
public SocketHandler(SMTPServerContext serverContext, Socket aSocket) throws IOException { this.serverContext = serverContext; Session session = new Session(serverContext, aSocket); PrintWriter out = new PrintWriter(aSocket.getOutputStream()); BufferedReader in = new BufferedReader(new InputStreamReader(...
public static void createInstance(String classPath) {
public static CaesarBcelWorld createInstance(String classPath) {
public static void createInstance(String classPath) { theInstance = new CaesarBcelWorld(classPath); lastClassPath = classPath; }
return theInstance;
public static void createInstance(String classPath) { theInstance = new CaesarBcelWorld(classPath); lastClassPath = classPath; }
Message testMessage = messageBuilder.throwsOnSome(ORDERED_MAP_MESSAGE_METHODS[i][0], "testMessage" + mocks, "testName", ORDERED_EXPECTED_DECODED_VALUES_OBJECTS[i][j], throwsOn);
Mock mockMessage = new Mock(MapMessage.class); String methodName = ORDERED_MAP_MESSAGE_METHODS[i][0]; List toThrowOn = new ArrayList(throwsOn); Object returnValue = ORDERED_EXPECTED_DECODED_VALUES_OBJECTS[i][j]; if ("getBoolean".equals(methodName)) { toThrowOn.remove("getString"); mockMessage.stubs().method("getString"...
public void testCanBeEncodedReturnsTrueForCorrectValues() { OrderedMapMessageValueCopier testCopier = new OrderedMapMessageValueCopier(); ArrayList throwsOn = new ArrayList(); for (int i = 0, mocks = 0; i < ORDERED_MAP_MESSAGE_METHODS.length; i++) { for (int j = 0; j < ORDERED_EXPECT...
Message testMessage = messageBuilder.throwsOnSome(ORDERED_MAP_MESSAGE_METHODS[i][0], "testMessage" + mocks, "testName", ORDERED_EXPECTED_DECODED_VALUES_OBJECTS[i][j], throwsOn);
Mock mockMessage = new Mock(MapMessage.class); String methodName = ORDERED_MAP_MESSAGE_METHODS[i][0]; List toThrowOn = new ArrayList(throwsOn); Object returnValue = ORDERED_EXPECTED_DECODED_VALUES_OBJECTS[i][j]; if ("getBoolean".equals(methodName)) { toThrowOn.remove("getString"); mockMessage.stubs().method("getString"...
public void testGetAsEncodedValueReturnsValuesCorrectlyEncoded() { OrderedMapMessageValueCopier testCopier = new OrderedMapMessageValueCopier(); ArrayList throwsOn = new ArrayList(); for (int i = 0, mocks = 0; i < ORDERED_MAP_MESSAGE_METHODS.length; i++) { for (int j = 0; j < ORDERED...
String expectedOutput = "214-This is the SubEthaMail SMTP Server version 1.0a2 running on example.subethamail.org\n" + "214-Topics:\n" + "214- HELP\n" + "214-For more info use \"HELP <topic>\".\n" + "214-For more information about this server, visit:\n" + "214- http: "214-To report bugs in the implementation, sen...
String expectedOutput = "214-This is the SubEthaMail SMTP Server version 1.0a2 running on example.subethamail.org\r\n" + "214-Topics:\r\n" + "214- HELP\r\n" + "214-For more info use \"HELP <topic>\".\r\n" + "214-For more information about this server, visit:\r\n" + "214- http: "214-To report bugs in the implement...
public void testHelp() throws Exception { commandDispatcher.setServerContext(new DummySMTPServerContext("1.0a2", "example.subethamail.org", 25)); String expectedOutput = "214-This is the SubEthaMail SMTP Server version 1.0a2 running on example.subethamail.org\n" + "214-Topics:\n" + "214- HELP\n...
assertEquals("214- HELP\n", helpCommand.getFormattedTopicList());
assertEquals("214- HELP\r\n", helpCommand.getFormattedTopicList());
public void testHelpTopicListing() throws Exception { assertEquals("214- HELP\n", helpCommand.getFormattedTopicList()); new NoopCommand(commandDispatcher); assertEquals("214- HELP NOOP\n", helpCommand.getFormattedTopicList()); }
assertEquals("214- HELP NOOP\n", helpCommand.getFormattedTopicList());
assertEquals("214- HELP NOOP\r\n", helpCommand.getFormattedTopicList());
public void testHelpTopicListing() throws Exception { assertEquals("214- HELP\n", helpCommand.getFormattedTopicList()); new NoopCommand(commandDispatcher); assertEquals("214- HELP NOOP\n", helpCommand.getFormattedTopicList()); }