<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hello Alexey,<br>
<br>
when using Intellij IDEA, I recommend the -XX:MaxPermSize=256m in
VM options. But your problem is related to the fact that many
tests require the presence of dummy-connector and dummy-resource
JAR bundles on classpath. While eclipse can do this without any
problems, in Intellij IDEA I haven't yet found a way how to do
that.<br>
<br>
So I'm using the following workaround:<br>
<br>
I created c:\tmp directory and put these files
(dummy-connector-3.2-SNAPSHOT.jar and
dummy-resource-3.2-SNAPSHOT.jar) into it.<br>
<br>
The files can be fetched from your local maven repository, if you
use mvn clean install to build midpoint.<br>
<br>
However, beware: if you need to run tests from maven, these files
have to be removed; because when using maven, they are present on
the classpath. If they would be in c:\tmp, midPoint would complain
about multiple occurrences of them ;)<br>
<br>
Pavol<br>
</div>
<blockquote
cite="mid:23F96C83E30B7E4DA253EBD07C550836014DF893@EX-MB2.solar.local"
type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:2.0cm 42.5pt 2.0cm 3.0cm;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US">Hi. <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I need to test new
functionality in notifications. But I can’t start current
tests.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I use IntelliJ Idea.
I’ve configured run configuration (see screenshot) but test
does’t work.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<div
style="mso-element:para-border-div;border:none;border-bottom:double
windowtext 2.25pt;padding:0cm 0cm 1.0pt 0cm">
<p class="MsoNormal" style="border:none;padding:0cm"><span
lang="EN-US">In logs I see an error<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span lang="EN-US">[TestNG] Running:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">
D:\.cache\idea14\system\temp-testng-customsuite.xml<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Loading midPoint
configuration from file target\midpoint-home\test-config.xml<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Import of
src\test\resources\common\resource-dummy.xml has failed:
FATAL_ERROR: Repository reference
{<a class="moz-txt-link-freetext" href="http://midpoint.evolveum.com/xml/ns/public/common/common-3">http://midpoint.evolveum.com/xml/ns/public/common/common-3</a>}connectorRef
cannot be resolved: filter matches no object<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">*op*
com.evolveum.midpoint.model.api.ModelService.importObjectsFromStream,
st: FATAL_ERROR, msg: Repository reference
{<a class="moz-txt-link-freetext" href="http://midpoint.evolveum.com/xml/ns/public/common/common-3">http://midpoint.evolveum.com/xml/ns/public/common/common-3</a>}connectorRef
cannot be resolved: filter matches no object<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">
[p]options=com.evolveum.midpoint.xml.ns._public.common.api_types_3.ImportOptionsType@27957ac[overwrite=false,keepOid=<null>,stopAfterErrors=<null>,summarizeSucceses=true,summarizeErrors=true,referentialIntegrity=<null>,validateStaticSchema=false,validateDynamicSchema=false,encryptProtectedValues=true,fetchResourceSchema=false,keepMetadata=<null>]<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> *op*
com.evolveum.midpoint.common.operation.import.object, st:
FATAL_ERROR, msg: Repository reference
{<a class="moz-txt-link-freetext" href="http://midpoint.evolveum.com/xml/ns/public/common/common-3">http://midpoint.evolveum.com/xml/ns/public/common/common-3</a>}connectorRef
cannot be resolved: filter matches no object<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">
[c]startLineNumber=18<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">
[c]progress=1<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">
[c]object=<a class="moz-txt-link-freetext" href="resource:10000000-0000-0000-0000-000000000004(Dummy">resource:10000000-0000-0000-0000-000000000004(Dummy</a>
Resource)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">
[c]endLineNumber=316<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> *op*
com.evolveum.midpoint.common.validator.Validator.objectBasicsCheck,
st: SUCCESS, msg: null<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> *op*
com.evolveum.midpoint.common.validator.Validator.resourceNamespaceCheck,
st: SUCCESS, msg: null<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> *op*
com.evolveum.midpoint.model.impl.importer.ObjectImporter.resolveReference,
st: FATAL_ERROR, msg: Repository reference
{<a class="moz-txt-link-freetext" href="http://midpoint.evolveum.com/xml/ns/public/common/common-3">http://midpoint.evolveum.com/xml/ns/public/common/common-3</a>}connectorRef
cannot be resolved: filter matches no object<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">
[c]item={...common/common-3}connectorRef<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> *op*
com.evolveum.midpoint.repo.api.RepositoryService.searchObjects,
st: SUCCESS, msg: null<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">
[p]query=Q{AND(EQUAL(connectorType,PPV(String:com.evolveum.icf.dummy.connector.DummyConnector),EQUAL(connectorVersion,PPV(String:2.0)),null
paging<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">
[p]type=com.evolveum.midpoint.xml.ns._public.common.common_3.ConnectorType<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">java.lang.AssertionError:
Import of src\test\resources\common\resource-dummy.xml has
failed: FATAL_ERROR: Repository reference
{<a class="moz-txt-link-freetext" href="http://midpoint.evolveum.com/xml/ns/public/common/common-3">http://midpoint.evolveum.com/xml/ns/public/common/common-3</a>}connectorRef
cannot be resolved: filter matches no object<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> at
com.evolveum.midpoint.test.util.TestUtil.assertSuccess(TestUtil.java:215)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> at
com.evolveum.midpoint.test.util.TestUtil.assertSuccess(TestUtil.java:238)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> at
com.evolveum.midpoint.test.util.TestUtil.assertSuccess(TestUtil.java:242)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> at
com.evolveum.midpoint.model.test.AbstractModelIntegrationTest.importAndGetObjectFromFile(AbstractModelIntegrationTest.java:333)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> at
com.evolveum.midpoint.model.test.AbstractModelIntegrationTest.importAndGetObjectFromFile(AbstractModelIntegrationTest.java:327)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> at
com.evolveum.midpoint.model.impl.AbstractInternalModelIntegrationTest.initSystem(AbstractInternalModelIntegrationTest.java:207)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> at
com.evolveum.midpoint.wf.impl.AbstractWfTest.initSystem(AbstractWfTest.java:158)<o:p></o:p></span></p>
<div
style="mso-element:para-border-div;border:none;border-bottom:double
windowtext 2.25pt;padding:0cm 0cm 1.0pt 0cm">
<p class="MsoNormal" style="border:none;padding:0cm"><span
lang="EN-US"> at
com.evolveum.midpoint.test.AbstractIntegrationTest.initSystemConditional(AbstractIntegrationTest.java:180)<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">How can I setup the run
configuration to make this test working?<o:p></o:p></span></p>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
midPoint mailing list
<a class="moz-txt-link-abbreviated" href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a>
<a class="moz-txt-link-freetext" href="http://lists.evolveum.com/mailman/listinfo/midpoint">http://lists.evolveum.com/mailman/listinfo/midpoint</a>
</pre>
</blockquote>
<br>
</body>
</html>