Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 703377 Details for
Bug 916135
Creating Knowledge Base from Guvnor shows FailedLoginException stack trace (but continues correctly)
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
jBPM JUnit test for the demo process
CustomerEvalProcessTest.java (text/x-java), 1.47 KB, created by
Maurice de Chateau
on 2013-02-27 11:49:15 UTC
(
hide
)
Description:
jBPM JUnit test for the demo process
Filename:
MIME Type:
Creator:
Maurice de Chateau
Created:
2013-02-27 11:49:15 UTC
Size:
1.47 KB
patch
obsolete
>package org.jbpm.evaluation.customer; > >import org.drools.KnowledgeBase; >import org.drools.runtime.StatefulKnowledgeSession; >import org.drools.runtime.process.ProcessInstance; >import org.jbpm.test.JbpmJUnitTestCase; >import org.junit.After; >import org.junit.Before; >import org.junit.Test; > >/** > * This is a sample file to test a process. > */ >public class CustomerEvalProcessTest extends JbpmJUnitTestCase { > private static final String GUVNOR_URL = "http://localhost:8080/jboss-brms"; > private static final String GUVNOR_USER_NAME = "admin"; > private static final String GUVNOR_PASSWORD = "admin"; > private static final String[] GUVNOR_PACKAGES = { "org.jbpm.evaluation.customer" }; > > private StatefulKnowledgeSession ksession; > > @Override > @Before > public void setUp() throws Exception { > super.setUp(); > > // Set up the knowledge session with the process and rules. > final KnowledgeBase kbase = createKnowledgeBaseGuvnor(false, GUVNOR_URL, GUVNOR_USER_NAME, GUVNOR_PASSWORD, GUVNOR_PACKAGES); > ksession = createKnowledgeSession(kbase); > } > > @Override > @After > public void tearDown() throws Exception { > ksession.dispose(); > > super.tearDown(); > } > > @Test > public void emptyRequest() { > final ProcessInstance processInstance = ksession.startProcess("org.jbpm.customer-evaluation"); > assertProcessInstanceCompleted(processInstance.getId(), ksession); > } >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 916135
:
703376
| 703377