Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 9 of 9 for getContext (0.05 seconds)

  1. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/RequestTraceHelper.java

                    return "dependency collection for " + request;
                } else if (data instanceof CollectStepData stepData) {
                    String msg = "dependency collection step for " + stepData.getContext();
                    if (detailed) {
                        msg += ". Path to offending node from root:\n";
                        msg += stepData.getPath().stream()
                                .map(n -> " -> " + n.toString())
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 3.2K bytes
    - Click Count (0)
  2. compat/maven-compat/src/test/java/org/apache/maven/project/LegacyLocalRepositoryManager.java

            LocalMetadataResult result = new LocalMetadataResult(request);
    
            String path;
    
            Metadata metadata = request.getMetadata();
            String context = request.getContext();
            RemoteRepository remote = request.getRepository();
    
            if (remote != null) {
                path = getPathForRemoteMetadata(metadata, remote, context);
            } else {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 5.6K bytes
    - Click Count (0)
  3. impl/maven-core/src/test/java/org/apache/maven/project/LegacyLocalRepositoryManager.java

            LocalMetadataResult result = new LocalMetadataResult(request);
    
            String path;
    
            Metadata metadata = request.getMetadata();
            String context = request.getContext();
            RemoteRepository remote = request.getRepository();
    
            if (remote != null) {
                path = getPathForRemoteMetadata(metadata, remote, context);
            } else {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 5.5K bytes
    - Click Count (0)
  4. compat/maven-builder-support/src/test/java/org/apache/maven/building/StringSourceTest.java

        }
    
        @Test
        void testGetContent() {
            StringSource source = new StringSource(null);
            assertEquals("", source.getContent());
    
            source = new StringSource("Hello World!", "LOCATION");
            assertEquals("Hello World!", source.getContent());
        }
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 1.8K bytes
    - Click Count (0)
  5. compat/maven-settings-builder/src/main/java/org/apache/maven/settings/building/StringSettingsSource.java

         * Gets the character sequence of this settings source.
         *
         * @return The underlying character stream, never {@code null}.
         * @deprecated instead use {@link #getContent()}
         */
        @Deprecated
        public String getSettings() {
            return getContent();
        }
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 2K bytes
    - Click Count (0)
  6. api/maven-api-core/src/main/java/org/apache/maven/api/services/xml/XmlWriterRequest.java

    @Experimental
    public interface XmlWriterRequest<T> {
    
        @Nullable
        Path getPath();
    
        @Nullable
        OutputStream getOutputStream();
    
        @Nullable
        Writer getWriter();
    
        @Nonnull
        T getContent();
    
        @Nullable
        Function<Object, String> getInputLocationFormatter();
    
        static <T> XmlWriterRequestBuilder<T> builder() {
            return new XmlWriterRequestBuilder<>();
        }
    
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Sat Aug 10 22:21:50 GMT 2024
    - 4.1K bytes
    - Click Count (0)
  7. android-test/src/test/kotlin/okhttp/android/test/RobolectricOkHttpClientTest.kt

    import org.robolectric.annotation.Config
    
    @RunWith(RobolectricTestRunner::class)
    @Config(
      sdk = [23, 26, 30, 33, 35],
    )
    class RobolectricOkHttpClientTest : BaseOkHttpClientUnitTest() {
      @Before
      fun setContext() {
        // This is awkward because Robolectric won't run our initializers and we don't want test deps
        // https://github.com/robolectric/robolectric/issues/8461
        OkHttp.initialize(ApplicationProvider.getApplicationContext())
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Sat Aug 30 16:25:39 GMT 2025
    - 1.2K bytes
    - Click Count (0)
  8. android-test/src/test/kotlin/okhttp/android/test/DisabledInitialiserTest.kt

    import org.robolectric.RobolectricTestRunner
    import org.robolectric.annotation.Config
    
    @RunWith(RobolectricTestRunner::class)
    @Config(
      sdk = [23, 26, 30, 33, 35],
    )
    class DisabledInitialiserTest {
      @Before
      fun setContext() {
        // Ensure we aren't succeeding because of another test
        Platform.resetForTests()
        PlatformRegistry.applicationContext = null
      }
    
      @Test
      fun testWithoutContext() {
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Sat Aug 30 16:25:39 GMT 2025
    - 2.1K bytes
    - Click Count (0)
  9. compat/maven-builder-support/src/main/java/org/apache/maven/building/StringSource.java

            return location;
        }
    
        /**
         * Gets the content of this source.
         *
         * @return The underlying character stream, never {@code null}.
         */
        public String getContent() {
            return content;
        }
    
        @Override
        public String toString() {
            return getLocation();
        }
    
        @Override
        public int hashCode() {
            return hashCode;
        }
    
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Jan 15 18:51:29 GMT 2025
    - 3K bytes
    - Click Count (0)
Back to Top