Skip to content
This repository has been archived by the owner on Nov 23, 2021. It is now read-only.

Reporter Module uses bean provided by Aem Classic Module #181

Closed
mmanski opened this issue Apr 24, 2017 · 2 comments
Closed

Reporter Module uses bean provided by Aem Classic Module #181

mmanski opened this issue Apr 24, 2017 · 2 comments
Labels

Comments

@mmanski
Copy link
Contributor

mmanski commented Apr 24, 2017

When using Reporter Module there is a need to install Aem Classic Module despite the fact that it is not used explicitly. The problem is that Classic Module provides CloseableHttpClient which is used by Reporter Module. It should be refactored so the HttpClient will be provided by bb core, reporter module or aem common

@mmanski
Copy link
Contributor Author

mmanski commented Apr 24, 2017

Stacktrace:


1) No implementation for org.apache.http.impl.client.CloseableHttpClient was bound.
  while locating org.apache.http.impl.client.CloseableHttpClient
    for field at com.cognifide.qa.bb.aem.AemAuthCookieFactory.httpClient(AemAuthCookieFactory.java:51)
  while locating com.cognifide.qa.bb.aem.AemAuthCookieFactory
    for field at com.cognifide.qa.bb.aem.AemLogin.aemAuthCookieFactory(AemLogin.java:31)
  while locating com.cognifide.qa.bb.aem.AemLogin
    for field at com.cp.colgate.aem.bobcat.zg.permissions.AuthorPermissionsTest.aemLogin(AuthorPermissionsTest.java:31)
  while locating com.cp.colgate.aem.bobcat.zg.permissions.AuthorPermissionsTest
1 error

	at com.google.inject.internal.InjectorImpl.getProvider(InjectorImpl.java:1004)
	at com.google.inject.internal.InjectorImpl.getProvider(InjectorImpl.java:961)
	at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1013)
	at com.cognifide.qa.bb.junit.TestRunner.createTest(TestRunner.java:97)
	at org.junit.runners.BlockJUnit4ClassRunner$1.runReflectiveCall(BlockJUnit4ClassRunner.java:266)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at org.junit.runners.BlockJUnit4ClassRunner.methodBlock(BlockJUnit4ClassRunner.java:263)
	at com.cognifide.qa.bb.junit.TestRunner.runMethod(TestRunner.java:167)
	at com.cognifide.qa.bb.junit.TestRunner.runChild(TestRunner.java:127)
	at com.cognifide.qa.bb.junit.TestRunner.runChild(TestRunner.java:61)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
	at com.cognifide.qa.bb.junit.TestRunner.run(TestRunner.java:140)
	at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
	at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)
	at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:51)
	at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:237)
	at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)

@mkrzyzanowski
Copy link
Contributor

mkrzyzanowski commented Apr 25, 2017

From now on, using CloseableHttpClient authorized in AEM context will require installing AemCommonModule

@wiiitek wiiitek closed this as completed Apr 25, 2017
@wiiitek wiiitek reopened this Apr 25, 2017
mkrzyzanowski added a commit that referenced this issue Apr 26, 2017
#181 Bindings for CloseableHttpClient moved to AemCommonModule
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants