| // Copyright 2000-2020 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. | |
| package com.intellij.execution; | |
| import com.intellij.DynamicBundle; | |
| import org.jetbrains.annotations.NonNls; | |
| import org.jetbrains.annotations.NotNull; | |
| import org.jetbrains.annotations.PropertyKey; | |
| import java.util.function.Supplier; | |
| public class JUnitBundle extends DynamicBundle { | |
| @NonNls private static final String BUNDLE = "messages.JUnitBundle"; | |
| private static final JUnitBundle INSTANCE = new JUnitBundle(); | |
| private JUnitBundle() { | |
| super(BUNDLE); | |
| } | |
| @NotNull | |
| public static String message(@NotNull @PropertyKey(resourceBundle = BUNDLE) String key, Object @NotNull ... params) { | |
| return INSTANCE.getMessage(key, params); | |
| } | |
| @NotNull | |
| public static Supplier<String> messagePointer(@NotNull @PropertyKey(resourceBundle = BUNDLE) String key, Object @NotNull ... params) { | |
| return INSTANCE.getLazyMessage(key, params); | |
| } | |
| } |