Uploaded image for project: 'Apache Curator'
  1. Apache Curator
  2. CURATOR-602

A typo in a variable of TestGroupMember

    XMLWordPrintableJSON

Details

    • Test
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • None
    • 5.2.0
    • Tests
    • None

    Description

      A typo in the variable name of TestGroupMember.java

      curator-recipes/src/test/java/org/apache/curator/framework/recipes/nodes/TestGroupMember.java
      Map<String, byte[]> currentMembers1 = groupMember1.getCurrentMembers();
      Map<String, byte[]> currentMembers2 = groupMember2.getCurrentMembers();
      Map<String, String> convertMembers1 = Maps.transformValues(currentMembers1, new Function<byte[], String>()
      {
          @Override
          public String apply(byte[] input)
          {
              return new String(input);
          }
      });
      //should be currentMembers2
      Map<String, String> convertMembers2 = Maps.transformValues(currentMembers1, new Function<byte[], String>()
      {
          @Override
          public String apply(byte[] input)
          {
              return new String(input);
          }
      });
      assertEquals(convertMembers1.size(), 2);
      assertEquals(convertMembers2.size(), 2);
      assertEquals(convertMembers1, convertMembers2);
      

      Attachments

        Activity

          People

            eolivelli Enrico Olivelli
            colinkuo Colin Kuo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1.5h
                1.5h