[jbpm-commits] JBoss JBPM SVN: r1939 - jbpm4/pvm/trunk/modules/core/src/test/java/org/jbpm/pvm/internal/jobexecutor.

do-not-reply at jboss.org do-not-reply at jboss.org
Wed Aug 20 07:48:55 EDT 2008


Author: porcherg
Date: 2008-08-20 07:48:55 -0400 (Wed, 20 Aug 2008)
New Revision: 1939

Removed:
   jbpm4/pvm/trunk/modules/core/src/test/java/org/jbpm/pvm/internal/jobexecutor/FailRecursivelyTestCommand.java
Log:
remove unused class

Deleted: jbpm4/pvm/trunk/modules/core/src/test/java/org/jbpm/pvm/internal/jobexecutor/FailRecursivelyTestCommand.java
===================================================================
--- jbpm4/pvm/trunk/modules/core/src/test/java/org/jbpm/pvm/internal/jobexecutor/FailRecursivelyTestCommand.java	2008-08-20 11:24:43 UTC (rev 1938)
+++ jbpm4/pvm/trunk/modules/core/src/test/java/org/jbpm/pvm/internal/jobexecutor/FailRecursivelyTestCommand.java	2008-08-20 11:48:55 UTC (rev 1939)
@@ -1,76 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jbpm.pvm.internal.jobexecutor;
-
-import org.jbpm.pvm.env.Environment;
-import org.jbpm.pvm.internal.cmd.Command;
-import org.jbpm.pvm.internal.job.CommandMessage;
-import org.jbpm.pvm.internal.log.Log;
-import org.jbpm.pvm.internal.wire.descriptor.IntegerDescriptor;
-import org.jbpm.pvm.internal.wire.descriptor.ObjectDescriptor;
-
-
-/**
- * @author Tom Baeyens
- * @author Guillaume Porcher
- * 
- * Simple command that will create an exception during execution. 
- * The exception will generate a stacktrace with variable length 
- * (controlled by the recursionInitialDepth parameter).
- * 
- * This class is to test the persistence of exception stacktrace in jobs.
- */
-public class FailRecursivelyTestCommand implements Command<Object> {
-
-  private static final long serialVersionUID = 1L;
-  private static final Log log = Log.getLog(FailRecursivelyTestCommand.class.getName());
-  
-  int recursionInitialDepth;
-  
-  public FailRecursivelyTestCommand() {
-  }
-
-  private void recursiveException(int val) {
-    if (val <= 0) {
-      throw new RuntimeException("val <= 0");
-    }
-    try {
-      recursiveException(val-1);
-    } catch (Exception e) {
-      throw new RuntimeException("Error in reccursive call", e);
-    }
-  }
-  
-  public static CommandMessage createMessage(int recursionInitialDepth) {
-    CommandMessage commandMessage = new CommandMessage();
-    ObjectDescriptor commandDescriptor = new ObjectDescriptor(FailRecursivelyTestCommand.class);
-    commandDescriptor.addInjection("recursionInitialDepth", new IntegerDescriptor(recursionInitialDepth));
-    commandMessage.setCommandDescriptor(commandDescriptor);
-    return commandMessage;
-  }
-
-  public Object execute(Environment environment) throws Exception {
-    recursiveException(recursionInitialDepth);
-    return null;
-  }
-
-}




More information about the jbpm-commits mailing list