jtulach commented on code in PR #9433:
URL: https://github.com/apache/netbeans/pull/9433#discussion_r4114749686


##########
java/debugger.jpda.ui/test/unit/src/org/netbeans/modules/debugger/jpda/ui/values/BreakpointInKotlinTest.java:
##########
@@ -0,0 +1,193 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.netbeans.modules.debugger.jpda.ui.values;
+
+import java.io.File;
+import java.nio.file.Files;
+import java.util.Arrays;
+import java.util.Base64;
+import junit.framework.Test;
+import org.netbeans.api.debugger.DebuggerManager;
+import org.netbeans.api.debugger.jpda.CallStackFrame;
+import org.netbeans.api.debugger.jpda.ExceptionBreakpoint;
+import org.netbeans.api.debugger.jpda.JPDADebugger;
+import org.netbeans.api.debugger.jpda.JPDASupport;
+import org.netbeans.api.debugger.jpda.event.JPDABreakpointEvent;
+import org.netbeans.api.debugger.jpda.event.JPDABreakpointListener;
+import org.netbeans.junit.NbTestCase;
+import org.netbeans.modules.debugger.jpda.ui.SourcePath;
+
+/**
+ * Tests whether a location is propertly found in a Kotlin file.
+ */
+public class BreakpointInKotlinTest extends NbTestCase {
+
+    private JPDASupport support;
+    private DebuggerManager dm = DebuggerManager.getDebuggerManager();
+
+    private static final String KOTLIN_HI_NAME = "Hi.kt";
+    private static final String CLASS_NAME = "HiKt";
+    private static final String CLASS_EXCEPTION_NAME = 
"java.lang.AssertionError";
+    private static final String KOTLIN_HI_SRC = """
+    fun main() {
+      throw java.lang.AssertionError("Hi from Kotlin")
+    }
+    """;
+    /**
+     * Content of a class file to test. File named {@code Hi.kt} with content 
{@link #KOTLIN_HI_SRC}
+     * Compiles into following bytes.
+     */

Review Comment:
   I've noticed @eppleton using `Base64` in his [sample 
test](https://github.com/apache/netbeans/pull/9433#issuecomment-5853499392). 
Switching to it in 6e383fcc03 as well. Thanks Toni!



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to