Class TwitterTestUtils

java.lang.Object
org.springframework.cloud.fn.common.twitter.util.TwitterTestUtils

public class TwitterTestUtils extends Object
Author:
Christian Tzolov
  • Constructor Details

    • TwitterTestUtils

      public TwitterTestUtils()
  • Method Details

    • mockTwitterUrls

      public Function<twitter4j.conf.ConfigurationBuilder,twitter4j.conf.ConfigurationBuilder> mockTwitterUrls(String baseUrl)
    • asString

      public static String asString(String resourcePath)
      Load Spring Resource as String.
      Parameters:
      resourcePath - Resource path (accepts file:// , classpath:// and http:// uri schemas)
      Returns:
      Returns text (UTF8) representation of the resource pointed by the resourcePath