mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-370727 moved the tests to ResultMappingTest
GitOrigin-RevId: 5081445224da9306a62174ed241e11cd7d4c1585
This commit is contained in:
committed by
intellij-monorepo-bot
parent
13f73dcfb6
commit
2561796bf8
+5
-1
@@ -1,4 +1,4 @@
|
||||
// Copyright 2000-2017 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
||||
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
package com.intellij.debugger.streams.exec;
|
||||
|
||||
import com.intellij.debugger.streams.test.TraceExecutionTestCase;
|
||||
@@ -15,6 +15,10 @@ public class ResultMappingTest extends TraceExecutionTestCase {
|
||||
doTest(false);
|
||||
}
|
||||
|
||||
public void testCollectorToListMapping() {
|
||||
doTest(false);
|
||||
}
|
||||
|
||||
public void testToListMapping() {
|
||||
doTest(false);
|
||||
}
|
||||
|
||||
@@ -39,8 +39,4 @@ public class SpecialCasesTest extends TraceExecutionTestCase {
|
||||
public void testToCollection() {
|
||||
doTest(false);
|
||||
}
|
||||
|
||||
public void testToList() {
|
||||
doTest(false);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
LineBreakpoint created at CollectorToListMapping.java:8
|
||||
!JDK_HOME!\bin\java -agentlib:jdwp=transport=dt_socket,address=!HOST_NAME!:!HOST_PORT!,suspend=y,server=n -Dfile.encoding=!FILE_ENCODING! -classpath !OUTPUT_PATH!;!RT_JAR! CollectorToListMapping
|
||||
Connected to the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
|
||||
CollectorToListMapping.java:8
|
||||
Stream.of(new Object(), new Object(), new Object())
|
||||
.collect(Collectors.toList())
|
||||
collect
|
||||
before: 1,2,3
|
||||
after: 4,5,6
|
||||
mappings for collect
|
||||
direct:
|
||||
1 -> 4
|
||||
2 -> 5
|
||||
3 -> 6
|
||||
reverse:
|
||||
1 <- 4
|
||||
2 <- 5
|
||||
3 <- 6
|
||||
Disconnected from the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
|
||||
|
||||
Process finished with exit code 0
|
||||
@@ -1,34 +0,0 @@
|
||||
LineBreakpoint created at ToList.java:6
|
||||
!JDK_HOME!\bin\java -agentlib:jdwp=transport=dt_socket,address=!HOST_NAME!:!HOST_PORT!,suspend=y,server=n -Dfile.encoding=!FILE_ENCODING! -classpath !OUTPUT_PATH!;!RT_JAR! ToList
|
||||
Connected to the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
|
||||
ToList.java:6
|
||||
Stream.of(1, 2, 3, 4, 5, 6)
|
||||
.filter(x -> x < 3)
|
||||
.toList()
|
||||
filter
|
||||
before: 1,3,5,6,7,8
|
||||
after: 2,4
|
||||
toList
|
||||
before: 2,4
|
||||
after: 9,10
|
||||
mappings for filter
|
||||
direct:
|
||||
1 -> 2
|
||||
3 -> 4
|
||||
5 -> nothing
|
||||
6 -> nothing
|
||||
7 -> nothing
|
||||
8 -> nothing
|
||||
reverse:
|
||||
1 <- 2
|
||||
3 <- 4
|
||||
mappings for toList
|
||||
direct:
|
||||
2 -> 9
|
||||
4 -> 10
|
||||
reverse:
|
||||
2 <- 9
|
||||
4 <- 10
|
||||
Disconnected from the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
|
||||
|
||||
Process finished with exit code 0
|
||||
@@ -3,11 +3,11 @@ LineBreakpoint created at ToListMapping.java:8
|
||||
Connected to the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
|
||||
ToListMapping.java:8
|
||||
Stream.of(new Object(), new Object(), new Object())
|
||||
.collect(Collectors.toList())
|
||||
collect
|
||||
.toList()
|
||||
toList
|
||||
before: 1,2,3
|
||||
after: 4,5,6
|
||||
mappings for collect
|
||||
mappings for toList
|
||||
direct:
|
||||
1 -> 4
|
||||
2 -> 5
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
public class CollectorToListMapping {
|
||||
public static void main(String[] args) {
|
||||
// Breakpoint!
|
||||
final List<Object> objects = Stream.of(new Object(), new Object(), new Object()).collect(Collectors.toList());
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
import java.util.stream.Stream;
|
||||
|
||||
public class ToList {
|
||||
public static void main(String[] args) {
|
||||
// Breakpoint!
|
||||
Stream.of(1, 2, 3, 4, 5, 6).filter(x -> x < 3).toList();
|
||||
}
|
||||
}
|
||||
@@ -5,6 +5,6 @@ import java.util.stream.Stream;
|
||||
public class ToListMapping {
|
||||
public static void main(String[] args) {
|
||||
// Breakpoint!
|
||||
final List<Object> objects = Stream.of(new Object(), new Object(), new Object()).collect(Collectors.toList());
|
||||
final List<Object> objects = Stream.of(new Object(), new Object(), new Object()).toList();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user