code: private static void applyTimeout(FrameworkMethod method) {
          // if default test timeout is defined
          if (LifecycleHooks.getConfig().containsKey(JUnitSettings.TEST_TIMEOUT.key())) {
              // get default test timeout
              long defaultTimeout = LifecycleHooks.getConfig().getLong(JUnitSettings.TEST_TIMEOUT.key());
              // get @Test annotation
              Test annotation = method.getAnnotation(Test.class);
              // if annotation declared and current timeout is less than default
              if ((annotation != null) && (annotation.timeout() < defaultTimeout)) {
                  // set test timeout interval
                  MutableTest.proxyFor(method.getMethod()).setTimeout(defaultTimeout);
              }
          }
      }
docs: If configured for default test timeout, apply the timeout value to the specified framework method if it doesn't
  already specify a longer timeout interval.
  
  @param method {@link FrameworkMethod} object