[
https://issues.apache.org/jira/browse/CLOUDSTACK-8131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14260872#comment-14260872
]
ChunFeng commented on CLOUDSTACK-8131:
--------------------------------------
this should be a mockito's bug
I already submit a issue to mockito community:
https://github.com/mockito/mockito/issues/150
> MidoNetElementTest testAddDhcpEntry method can not pass test
> --------------------------------------------------------------
>
> Key: CLOUDSTACK-8131
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-8131
> Project: CloudStack
> Issue Type: Test
> Security Level: Public(Anyone can view this level - this is the
> default.)
> Components: Test
> Affects Versions: Future
> Environment: windows / cygwin
> Reporter: ChunFeng
> Priority: Minor
>
> MidoNetElementTest class can not pass test .
> branch is master:
> after I run command :
> mvn install -P developer,systemvm
> errors as below :
> ------------------
> Running com.cloud.network.element.MidoNetElementTest
> Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.86 sec <<<
> FAILURE!
> Results :
> Tests in error:
> testAddDhcpEntry(com.cloud.network.element.MidoNetElementTest):
> org.midonet.client.resource.ResourceBase$$EnhancerByMockitoWithCGLIB$$6632ba6e
> cannot be cast to org.midonet.client.resource.Bridge
> testImplement(com.cloud.network.element.MidoNetElementTest):
> org.midonet.client.resource.ResourceBase$$EnhancerByMockitoWithCGLIB$$6632ba6e
> cannot be cast to org.midonet.client.resource.Bridge
> Tests run: 2, Failures: 0, Errors: 2, Skipped: 0
> ------------------
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)