[GitHub] cloudstack pull request: CLOUDSTACK-8656: tests ignoring exception...

2015-12-06 Thread asfgit
Github user asfgit closed the pull request at: https://github.com/apache/cloudstack/pull/850 --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is

[GitHub] cloudstack pull request: CLOUDSTACK-8656: tests ignoring exception...

2015-10-21 Thread rafaelweingartner
Github user rafaelweingartner commented on the pull request: https://github.com/apache/cloudstack/pull/850#issuecomment-149862804 Sure, I think that a more specific “throws” clause has to be used. Throws exception, was just an expression. --- If your project is set up for it, y

[GitHub] cloudstack pull request: CLOUDSTACK-8656: tests ignoring exception...

2015-10-21 Thread DaanHoogland
Github user DaanHoogland commented on the pull request: https://github.com/apache/cloudstack/pull/850#issuecomment-149862051 not "throws Exception" but a more specific throws. In this case the exceptions are silently ignored as part of a happy flow. I don't like that but I'm not goin

[GitHub] cloudstack pull request: CLOUDSTACK-8656: tests ignoring exception...

2015-10-21 Thread rafaelweingartner
Github user rafaelweingartner commented on the pull request: https://github.com/apache/cloudstack/pull/850#issuecomment-149861633 If an exception occurs, is the test still going to pass? If that is not the case, I would use "throws Exception" on each one of those tests. --- If y

[GitHub] cloudstack pull request: CLOUDSTACK-8656: tests ignoring exception...

2015-10-21 Thread DaanHoogland
Github user DaanHoogland commented on the pull request: https://github.com/apache/cloudstack/pull/850#issuecomment-149818277 the reason for ignoring should be made more explicit in one way or the other. I'm not hellbound on logging but I see no problem in it. A caught and ignored exce

[GitHub] cloudstack pull request: CLOUDSTACK-8656: tests ignoring exception...

2015-10-20 Thread rafaelweingartner
Github user rafaelweingartner commented on the pull request: https://github.com/apache/cloudstack/pull/850#issuecomment-149744151 Do you guys really think that is a good idea to log exceptions in a test case? If the case is just to ignore them, it could be done without logging.

[GitHub] cloudstack pull request: CLOUDSTACK-8656: tests ignoring exception...

2015-10-19 Thread ustcweizhou
Github user ustcweizhou commented on the pull request: https://github.com/apache/cloudstack/pull/850#issuecomment-149162987 LGTM --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature e

[GitHub] cloudstack pull request: CLOUDSTACK-8656: tests ignoring exception...

2015-09-30 Thread koushik-das
Github user koushik-das commented on the pull request: https://github.com/apache/cloudstack/pull/850#issuecomment-144384074 @DaanHoogland @borisroman The test needs to invoke a protected method from a class and so is done using reflection. The test case already asserts for the method

[GitHub] cloudstack pull request: CLOUDSTACK-8656: tests ignoring exception...

2015-09-30 Thread DaanHoogland
Github user DaanHoogland commented on the pull request: https://github.com/apache/cloudstack/pull/850#issuecomment-144363576 @borisroman the expeted attribute is not there and as I understand with reason. The exceptions are part of the contract and need to be handled by the client. Th

[GitHub] cloudstack pull request: CLOUDSTACK-8656: tests ignoring exception...

2015-09-19 Thread borisroman
Github user borisroman commented on the pull request: https://github.com/apache/cloudstack/pull/850#issuecomment-141662154 @DaanHoogland Why log when an exception is thrown? In a test when an exception is thrown it should either fail, or when @Test(expected = --exception.class--) is d

[GitHub] cloudstack pull request: CLOUDSTACK-8656: tests ignoring exception...

2015-09-18 Thread koushik-das
Github user koushik-das commented on the pull request: https://github.com/apache/cloudstack/pull/850#issuecomment-141620583 LGTM --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature e

[GitHub] cloudstack pull request: CLOUDSTACK-8656: tests ignoring exception...

2015-09-18 Thread DaanHoogland
GitHub user DaanHoogland opened a pull request: https://github.com/apache/cloudstack/pull/850 CLOUDSTACK-8656: tests ignoring exceptions final few ignored exceptions supplied with log messages. You can merge this pull request into a Git repository by running: $ git pull https:/