Changeset 16162 in josm for trunk/test


Ignore:
Timestamp:
2020-03-17T20:09:45+01:00 (5 years ago)
Author:
simon04
Message:

see #18948 - Use Utils.readBytesFromStream instead of ByteStreams.toByteArray

Location:
trunk/test/unit/org/openstreetmap/josm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/TestUtils.java

    r14977 r16162  
    6060import com.github.tomakehurst.wiremock.WireMockServer;
    6161import com.github.tomakehurst.wiremock.core.WireMockConfiguration;
    62 import com.google.common.io.ByteStreams;
    6362
    6463import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
     
    531530            ) {
    532531                assertArrayEquals(
    533                     ByteStreams.toByteArray(streamA),
    534                     ByteStreams.toByteArray(streamB)
     532                    Utils.readBytesFromStream(streamA),
     533                    Utils.readBytesFromStream(streamB)
    535534                );
    536535            }
  • trunk/test/unit/org/openstreetmap/josm/actions/downloadtasks/PluginDownloadTaskTest.java

    r14201 r16162  
    2020import org.openstreetmap.josm.plugins.PluginInformation;
    2121import org.openstreetmap.josm.testutils.JOSMTestRules;
    22 
    23 import com.google.common.io.ByteStreams;
     22import org.openstreetmap.josm.tools.Utils;
    2423
    2524import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
     
    141140            assertArrayEquals(
    142141                existingPluginContents,
    143                 ByteStreams.toByteArray(pluginDirPluginStream)
     142                Utils.readBytesFromStream(pluginDirPluginStream)
    144143            );
    145144        }
Note: See TracChangeset for help on using the changeset viewer.