cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From DaanHoogland <...@git.apache.org>
Subject [GitHub] cloudstack pull request: CLOUDSTACK-8704: Schedule restart of rout...
Date Tue, 04 Aug 2015 08:45:59 GMT
Github user DaanHoogland commented on a diff in the pull request:

    https://github.com/apache/cloudstack/pull/656#discussion_r36168074
  
    --- Diff: server/test/com/cloud/ha/HighAvailabilityManagerImplTest.java ---
    @@ -113,12 +110,18 @@
         public void setup() throws IllegalArgumentException,
                 IllegalAccessException, NoSuchFieldException, SecurityException {
             highAvailabilityManager = new HighAvailabilityManagerImpl();
    -        for (Field injectField : HighAvailabilityManagerImpl.class
    -                .getDeclaredFields()) {
    +        for (Field injectField : HighAvailabilityManagerImpl.class.getDeclaredFields())
{
                 if (injectField.isAnnotationPresent(Inject.class)) {
                     injectField.setAccessible(true);
    -                injectField.set(highAvailabilityManager, this.getClass()
    -                        .getDeclaredField(injectField.getName()).get(this));
    +                injectField.set(highAvailabilityManager, this.getClass().getDeclaredField(injectField.getName()).get(this));
    +            } else if (injectField.getName().equals("_workers")) {
    --- End diff --
    
    I suppose this is needed for the extra tests. Can you explain?


---
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 enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message