Questions tagged [cactus]

Jakarta Cactus is a framework for unit testing server-side java code. Apache retired Jakarta Cactus on 2011/08/05.

24 questions
3
votes
2 answers

Cactus versus mock objects (jMock, Easy mock)

I'm little confused with Cactus and mock objects (jMock, Easy mock). Could anyone please answer the following questions? When to use Cactus for testing? When not to use Cactus for testing? When to use mock objects for testing? When not to use mock…
Isabel Jinson
  • 8,541
  • 16
  • 59
  • 75
2
votes
1 answer

Blocking directed paths on a Cactus Graph

I want to find the longest path distance on a cactus graph with certain blocking directed paths. For example, if we have following 4 nodes, This would mean that if we visit 1, we cannot go to 2 That is, 1 -> 2 and 1 -> 3 -> 2 are not…
ZeroPepsi
  • 141
  • 3
2
votes
4 answers

Jakarta Cactus alternate?

Greetings, we have a project with loads of beans, JSP and etc. There is a desperate need for performing automated tests in our environment (we use Maven). Now, we can easily write tests for database project layer, for various security utilities we…
SPIRiT_1984
  • 2,717
  • 3
  • 29
  • 46
2
votes
1 answer

Doing integration testing on Oracle ADF application

I have an ADF application which running on my server. I was trying to run some integration test cases on it. I used to use apache cactus framework to run testing on normal web applications. My test cases would extend CactusStrutsTestCase and will be…
Jijoy
  • 12,386
  • 14
  • 41
  • 48
1
vote
0 answers

What is best way to test smartServer servlets?

I have the following Servlet method which I want to create test for it using junit or Cactus.I've tried Junit but in testing implementation classes but I'm a newbie in testing WebServices so I will really appreciate any help. public DSResponse…
realUser
  • 21
  • 2
1
vote
0 answers

Create junitTest or cactus test for servlet

I have the following Servlet method which I want to create test for it using junit or Cactus. I'm a newbie so I will really appreciate any tips. public DSResponse executeFetch(DSRequest req) throws Exception { DSResponse resp = new…
realUser
  • 21
  • 2
1
vote
1 answer

ERROR: Could not install packages due to an OSError: [[Errno 22] Invalid argument: '/tmp/pip-req-build]

I'm using the Win10 built-in linux system and type pip install -U . and then I got a terrible error: ERROR: Could not install packages due to an OSError: [('/mnt/f/MyDownloads/Download/cactus-bin-v1.2.3/.git/branches',…
Zi Tao
  • 21
  • 2
  • 4
1
vote
3 answers

Connection Pool "Leak" in development. Could it be due to JUnit test setup?

I am trying to track down a database connection pool "leak" in development and I am wondering if it is resulting from how the unit tests are set up. Something is grabbing database connections from the Glassfish pool and not closing them when done. …
Shane
  • 2,629
  • 6
  • 32
  • 39
1
vote
1 answer

Cactus still viable for Integration Testing?

I'm working on a project and we want to perform integration testing for our servlets and JSP. I was reading about the Cactus project. I was wondering if Cactus is still a viable solution for integration testing of servlets and JSPs? I know it has…
1
vote
1 answer

Debugging Cactus Tests in Eclipse

Side note: This is inherited code, I didn't do any of the setup and am new to the project. I'm trying to set up remote debugging in Eclipse for these unit tests that use Cactus. I've read around a bit (but I can't seem to find any REAL information…
Th3sandm4n
  • 809
  • 4
  • 13
  • 23
1
vote
1 answer

Error "syntax error near unexpected token '&' - trying to run a file from command line within an application

I am a newbie to Linux and I am only really using it to use a program for my final year thesis. I have got to grips with the language for the program but am having issues with actually running it in Linux. The program is called "CACTUS" and all…
1
vote
2 answers

Run JUnit test case in tomcat container

I am writing a JUnit test case which tests a findBy method of a HibernateEnity. Entity gets it's database connection from tomcat managed datasources. JUnit test case: MyHibernateEntity entity = new MyHibernateEntity(); expectedResult =…
Himanshu Yadav
  • 13,315
  • 46
  • 162
  • 291
1
vote
2 answers

Error : "javax.servlet.ServletException: Failed to load test suite [SampleTest], Reason is [Class not found "SampleTest"] "

Hi i am new to cactus and when i am using tomcat5.1 and have included all the necessary jars. But when i am trying to execute it, it is showing the error, Error : "javax.servlet.ServletException: Failed to load test suite [SampleTest], Reason is…
i2ijeya
  • 15,952
  • 18
  • 63
  • 72
0
votes
4 answers

AssertionFailedError

I am facing the following problem while running it using junit: All the methods are working fine except testValidatePanelistIDHwid. This is the new method that i have added in this class all other methods are working fine.…
vibhas
  • 1,449
  • 4
  • 18
  • 32
0
votes
1 answer

Error: pkg_resources.DistributionNotFound: The 'colorlog' distribution was not found and is required by Cactus

To upload my Django project in netlify, I installed cactus and am trying to build my site. cactus create ~/mysite Traceback (most recent call last): File "/usr/local/bin/cactus", line 5, in from pkg_resources import load_entry_point …
박경욱
  • 1
  • 1
1
2