Questions tagged [picocontainer]

PicoContainer is a highly embeddable, full-service, Inversion of Control (IoC) container for components honor the Dependency Injection pattern

PicoContainer

PicoContainer is a highly embeddable, full-service, Inversion of Control (IoC) container for components honor the Dependency Injection pattern. The project started in 2003 and pioneered Constructor Injection auto-wiring. It is also Open Source and therefore free to use. The license is BSD and thus you can safely use this with commercial or other open source software.

PicoContainer 2.14 is the Latest Released Version, and the download is disponible here. The project is hosted in http://picocontainer.codehaus.org/.

75 questions
0
votes
0 answers

cucumber (with pico-container): IllegalStateException: Cannot stop. Current container state was: CONSTRUCTED

Below error is being encountered with selenium/testng/cucumber(with pico-container) project. java.lang.IllegalStateException: Cannot stop. Current container state was: CONSTRUCTED at…
sbguduru
  • 1
  • 2
0
votes
0 answers

PicoContainer, Selenium Junit : Runner does not run more than 1 feature file when we pass webdriver as static in cucumber Bdd framework

Background: We had a very big step definition and it was getting difficult to manage it. So, we have decided to split step definition into multiple small definitions using this new automation base. Stack: Selenium, Java, Cucumber,Junit,…
Niks
  • 85
  • 6
0
votes
1 answer

Project throwing unsatisfied dependency issue when using picocontainer

Having some trouble with implementing Cucumber with a test I'm trying to set up. Managed to get the test working Selenium using this as a…
Tom F
  • 1
  • 3
0
votes
0 answers

Getting error: org.picocontainer.PicoCompositionException: java.nio.file.AccessDeniedException: /usr/share/httpd/.netlogo running on linux machine

I am trying to run a headless instance of NetLogo (version 6.2.2) on a Linux machine. The NetLogo instance is created by a jar file which is executed by a PHP script. This is working fine on my windows machine but throws this error when i try to do…
0
votes
2 answers

You're not allowed to extend classes that define Step Definitions or hooks

I trying to incorporate pico-container DI into my framework so I can use the @Before and @After tags across multiple step definitions. Please see the error below. Any advice would be great. You're not allowed to extend classes that define Step…
0
votes
1 answer

Getting null value for the Scenario Context- cucumber pico container

Getting null value when tried to get the value in steps given in second scenario. However I am able to get the value, when I tried in same steps. Feature File Feature: 01_Permission_Accept Scenario: 01_Is AUT installed and click on chapter 1 …
DeepakVerma
  • 179
  • 1
  • 3
  • 14
0
votes
0 answers

Register same class under multiple interfaces in PicoContainer

I have next input: PicoContainer instance configured next way: MutablePicoContainer pico = new PicoBuilder() .withLifecycle() .withCaching() .withConstructorInjection() …
0
votes
1 answer

Share Test Context in Cucumber,while creating object in java to share same state for all scenarios i am getting exception

Share Test Context in Cucumber,while creating object in java to share same state for all scenarios i am getting exception here i am creating object of endpoints class from TestContext class Failure Trace java.lang.IllegalStateException: Cannot stop.…
0
votes
0 answers

How to write a constructor that calls a builder which builds itself?

I have a YAML config which I construct with this builder. The builder takes an InputStream which allows me to test it with test config files. It works great as SnakeYAML can figure out how to build my object. public static MyConfig…
0
votes
1 answer

Parallel execution with Jbehave with pico (jbehave-pico)

I'm new Jbehave. Im trying to find a way to achieve world in cucumber with Jbehave. I generated project with jbehave with pico archetype. Im trying to run two stories in parallel. I updated threads in pom.xml to 2. Consider a sample stepdef class…
Dileep17
  • 299
  • 3
  • 18
0
votes
0 answers

Picocontainer is not sharing data with step file,My tests are getting skipped

My problem is related to picocontainer,i am not able to figure out what I am doing wrong when executing the test runner I am unable to find any scenarios or steps.However when I execute my old file the tests runs correctly which doesnot have…
Ajay P.
  • 3
  • 5
0
votes
1 answer

Test Data class POM for Appium Cucumber Framework with PicoContainer

I have a framework for native iOS testing which utilizes Appium, TestNg, Cucumber, PicoContainer And I`m looking for best way to store data fetched from one step/scenario that later can be used to assert another scenario Example: Scenario: user can…
0
votes
1 answer

How to effectively use PicoContainer Setter Injection (Use PicoContainer without passing parameters to the constructor)?

How to effectively use PicoContainer Setter Injection? I need to be able to pass data across Cucumber steps and want to avoid the traditional PicoContainer approach where parameters are passed to the constructor (Use PicoContainer without taking the…
Gbru
  • 1,065
  • 3
  • 24
  • 56
0
votes
1 answer

Possible to use PicoContainer (Dependency injection) without constructor parameters?

I need to achieve dependency injection using PicoContainer without passing constructor parameters, current setup: public class Shared_Data { public Account_Pojo account_pojo; public Shared_Data(Account_Pojo account_pojo) { …
Gbru
  • 1,065
  • 3
  • 24
  • 56
0
votes
0 answers

Java Maven; org.picocontainer.injectors.AbstractInjector$CyclicDependencyException: Cyclic dependency

Currently seeing the exception listed below: org.picocontainer.injectors.AbstractInjector$CyclicDependencyException: Cyclic dependency: [class pageObjects.accounts.login.ForgotPassword_PO, class pageObjects.tutors.Tutors_PO, class…
Gbru
  • 1,065
  • 3
  • 24
  • 56