docstring_tokens
sequence | code_tokens
sequence |
---|---|
[
"get",
"all",
"given",
"{"
] | [
"return",
"get",
"members",
"from",
"descriptors",
"(",
"store",
"get",
"(",
"index",
"(",
"member",
"usage",
"scanner",
"class",
")",
",",
"name",
"(",
"constructor",
")",
")",
")",
";"
] |
[
"serialize",
"to",
"a",
"given",
"directory",
"and",
"filename",
"<",
"p",
">",
"*",
"it",
"is",
"preferred",
"to",
"specify",
"a",
"designated",
"directory",
"(",
"for",
"example",
"meta",
"-",
"inf",
"/",
"reflections",
")",
"so",
"that",
"it",
"could",
"be",
"found",
"later",
"much",
"faster",
"using",
"the",
"load",
"method",
"<",
"p",
">",
"see",
"the",
"documentation",
"for",
"the",
"save",
"method",
"on",
"the",
"configured",
"{"
] | [
"return",
"save",
"(",
"filename",
",",
"configuration",
"get",
"serializer",
"(",
")",
")",
";"
] |
[
"<",
"p",
">",
"an",
"object",
"that",
"contains",
"information",
"about",
"the",
"channel",
"<",
"/",
"p",
">"
] | [
"set",
"channel",
"(",
"channel",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"statistics",
"about",
"the",
"channel",
"included",
"if",
"the",
"include",
"statistics",
"parameter",
"is",
"set",
"to",
"true",
"in",
"the",
"request",
"<",
"/",
"p",
">"
] | [
"this",
"statistics",
"=",
"statistics",
";"
] |
[
"<",
"p",
">",
"statistics",
"about",
"the",
"channel",
"included",
"if",
"the",
"include",
"statistics",
"parameter",
"is",
"set",
"to",
"true",
"in",
"the",
"request",
"<",
"/",
"p",
">"
] | [
"return",
"this",
"statistics",
";"
] |
[
"<",
"p",
">",
"statistics",
"about",
"the",
"channel",
"included",
"if",
"the",
"include",
"statistics",
"parameter",
"is",
"set",
"to",
"true",
"in",
"the",
"request",
"<",
"/",
"p",
">"
] | [
"set",
"statistics",
"(",
"statistics",
")",
";",
"return",
"this",
";"
] |
[
"builds",
"a",
"alarm",
"exists",
"waiter",
"by",
"using",
"custom",
"parameters",
"waiter",
"parameters",
"and",
"other",
"parameters",
"defined",
"in",
"the",
"waiters",
"specification",
"and",
"then",
"polls",
"until",
"it",
"determines",
"whether",
"the",
"resource",
"entered",
"the",
"desired",
"state",
"or",
"not",
"where",
"polling",
"criteria",
"is",
"bound",
"by",
"either",
"default",
"polling",
"strategy",
"or",
"custom",
"polling",
"strategy"
] | [
"return",
"new",
"waiter",
"builder",
"<",
"describe",
"alarms",
"request",
",",
"describe",
"alarms",
"result",
">",
"(",
")",
"with",
"sdk",
"function",
"(",
"new",
"describe",
"alarms",
"function",
"(",
"client",
")",
")",
"with",
"acceptors",
"(",
"new",
"alarm",
"exists",
"is",
"true",
"matcher",
"(",
")",
")",
"with",
"default",
"polling",
"strategy",
"(",
"new",
"polling",
"strategy",
"(",
"new",
"max",
"attempts",
"retry",
"strategy",
"(",
"40",
")",
",",
"new",
"fixed",
"delay",
"strategy",
"(",
"5",
")",
")",
")",
"with",
"executor",
"service",
"(",
"executor",
"service",
")",
"build",
"(",
")",
";"
] |
[
"converts",
"type",
"using",
"type",
"converter",
"manager"
] | [
"return",
"type",
"converter",
"manager",
"convert",
"type",
"(",
"value",
",",
"int",
"class",
")",
"int",
"value",
"(",
")",
";"
] |
[
"creates",
"an",
"array",
"with",
"single",
"element"
] | [
"return",
"new",
"int",
"[",
"]",
"{",
"convert",
"type",
"(",
"value",
")",
"}",
";"
] |
[
"converts",
"primitive",
"array",
"to",
"target",
"array"
] | [
"int",
"[",
"]",
"result",
"=",
"null",
";",
"if",
"(",
"primitive",
"component",
"type",
"=",
"=",
"int",
"class",
")",
"{",
"return",
"(",
"int",
"[",
"]",
")",
"value",
";",
"}",
"if",
"(",
"primitive",
"component",
"type",
"=",
"=",
"long",
"class",
")",
"{",
"final",
"long",
"[",
"]",
"array",
"=",
"(",
"long",
"[",
"]",
")",
"value",
";",
"result",
"=",
"new",
"int",
"[",
"array",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"array",
"length",
";",
"i",
"+",
"+",
")",
"{",
"result",
"[",
"i",
"]",
"=",
"(",
"int",
")",
"array",
"[",
"i",
"]",
";",
"}",
"}",
"else",
"if",
"(",
"primitive",
"component",
"type",
"=",
"=",
"float",
"class",
")",
"{",
"final",
"float",
"[",
"]",
"array",
"=",
"(",
"float",
"[",
"]",
")",
"value",
";",
"result",
"=",
"new",
"int",
"[",
"array",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"array",
"length",
";",
"i",
"+",
"+",
")",
"{",
"result",
"[",
"i",
"]",
"=",
"(",
"int",
")",
"array",
"[",
"i",
"]",
";",
"}",
"}",
"else",
"if",
"(",
"primitive",
"component",
"type",
"=",
"=",
"double",
"class",
")",
"{",
"final",
"double",
"[",
"]",
"array",
"=",
"(",
"double",
"[",
"]",
")",
"value",
";",
"result",
"=",
"new",
"int",
"[",
"array",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"array",
"length",
";",
"i",
"+",
"+",
")",
"{",
"result",
"[",
"i",
"]",
"=",
"(",
"int",
")",
"array",
"[",
"i",
"]",
";",
"}",
"}",
"else",
"if",
"(",
"primitive",
"component",
"type",
"=",
"=",
"short",
"class",
")",
"{",
"final",
"short",
"[",
"]",
"array",
"=",
"(",
"short",
"[",
"]",
")",
"value",
";",
"result",
"=",
"new",
"int",
"[",
"array",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"array",
"length",
";",
"i",
"+",
"+",
")",
"{",
"result",
"[",
"i",
"]",
"=",
"(",
"int",
")",
"array",
"[",
"i",
"]",
";",
"}",
"}",
"else",
"if",
"(",
"primitive",
"component",
"type",
"=",
"=",
"byte",
"class",
")",
"{",
"final",
"byte",
"[",
"]",
"array",
"=",
"(",
"byte",
"[",
"]",
")",
"value",
";",
"result",
"=",
"new",
"int",
"[",
"array",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"array",
"length",
";",
"i",
"+",
"+",
")",
"{",
"result",
"[",
"i",
"]",
"=",
"(",
"int",
")",
"array",
"[",
"i",
"]",
";",
"}",
"}",
"else",
"if",
"(",
"primitive",
"component",
"type",
"=",
"=",
"char",
"class",
")",
"{",
"final",
"char",
"[",
"]",
"array",
"=",
"(",
"char",
"[",
"]",
")",
"value",
";",
"result",
"=",
"new",
"int",
"[",
"array",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"array",
"length",
";",
"i",
"+",
"+",
")",
"{",
"result",
"[",
"i",
"]",
"=",
"(",
"int",
")",
"array",
"[",
"i",
"]",
";",
"}",
"}",
"else",
"if",
"(",
"primitive",
"component",
"type",
"=",
"=",
"boolean",
"class",
")",
"{",
"final",
"boolean",
"[",
"]",
"array",
"=",
"(",
"boolean",
"[",
"]",
")",
"value",
";",
"result",
"=",
"new",
"int",
"[",
"array",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"array",
"length",
";",
"i",
"+",
"+",
")",
"{",
"result",
"[",
"i",
"]",
"=",
"array",
"[",
"i",
"]",
"?",
"1",
":",
"0",
";",
"}",
"}",
"return",
"result",
";"
] |
[
"first",
"token",
"is",
"{",
"@",
"link",
"special",
"identifier",
"#",
"columns",
"}"
] | [
"lexer",
"next",
"token",
"(",
")",
";",
"match",
"(",
"kw",
"from",
",",
"kw",
"in",
")",
";",
"identifier",
"table",
"=",
"identifier",
"(",
")",
";",
"identifier",
"database",
"=",
"null",
";",
"switch",
"(",
"lexer",
"token",
"(",
")",
")",
"{",
"case",
"kw",
"from",
":",
"case",
"kw",
"in",
":",
"lexer",
"next",
"token",
"(",
")",
";",
"database",
"=",
"identifier",
"(",
")",
";",
"}",
"switch",
"(",
"lexer",
"token",
"(",
")",
")",
"{",
"case",
"kw",
"like",
":",
"string",
"like",
"=",
"like",
"(",
")",
";",
"return",
"new",
"show",
"columns",
"(",
"full",
",",
"table",
",",
"database",
",",
"like",
")",
";",
"case",
"kw",
"where",
":",
"expression",
"where",
"=",
"where",
"(",
")",
";",
"return",
"new",
"show",
"columns",
"(",
"full",
",",
"table",
",",
"database",
",",
"where",
")",
";",
"}",
"return",
"new",
"show",
"columns",
"(",
"full",
",",
"table",
",",
"database",
")",
";"
] |
[
"will",
"set",
"object",
"as",
"tag",
"to",
"this",
"request",
"wrapped",
"by",
"weak",
"reference"
] | [
"this",
"response",
"handler",
"set",
"tag",
"(",
"tag",
")",
";",
"return",
"this",
";"
] |
[
"will",
"return",
"tag",
"of",
"this",
"async",
"http",
"request"
] | [
"return",
"this",
"response",
"handler",
"get",
"tag",
"(",
")",
";"
] |
[
"return",
"the",
"specified",
"aspect",
"class",
"(",
"never",
"{"
] | [
"return",
"this",
"aspect",
"class",
";"
] |
[
"determine",
"the",
"order",
"for",
"this",
"factory",
"s",
"aspect",
"instance",
"either",
"an",
"instance",
"-",
"specific",
"order",
"expressed",
"through",
"implementing",
"the",
"{"
] | [
"return",
"get",
"order",
"for",
"aspect",
"class",
"(",
"this",
"aspect",
"class",
")",
";"
] |
[
"the",
"number",
"of",
"milliseconds",
"between",
"instances",
"of",
"this",
"table",
"in",
"the",
"output",
"transport",
"stream"
] | [
"this",
"tdt",
"interval",
"=",
"tdt",
"interval",
";"
] |
[
"the",
"number",
"of",
"milliseconds",
"between",
"instances",
"of",
"this",
"table",
"in",
"the",
"output",
"transport",
"stream"
] | [
"return",
"this",
"tdt",
"interval",
";"
] |
[
"the",
"number",
"of",
"milliseconds",
"between",
"instances",
"of",
"this",
"table",
"in",
"the",
"output",
"transport",
"stream"
] | [
"set",
"tdt",
"interval",
"(",
"tdt",
"interval",
")",
";",
"return",
"this",
";"
] |
[
"returns",
"a",
"{"
] | [
"return",
"new",
"schema",
"coder",
"<",
">",
"(",
"schema",
",",
"to",
"row",
"function",
",",
"from",
"row",
"function",
")",
";"
] |
[
"returns",
"a",
"{"
] | [
"return",
"new",
"schema",
"coder",
"<",
">",
"(",
"schema",
",",
"serializable",
"functions",
"identity",
"(",
")",
",",
"serializable",
"functions",
"identity",
"(",
")",
")",
";"
] |
[
"returns",
"the",
"schema",
"associated",
"with",
"this",
"type"
] | [
"return",
"row",
"coder",
"get",
"schema",
"(",
")",
";"
] |
[
"returns",
"the",
"to",
"row",
"conversion",
"function"
] | [
"return",
"from",
"row",
"function",
";"
] |
[
"returns",
"the",
"from",
"row",
"conversion",
"function"
] | [
"return",
"to",
"row",
"function",
";"
] |
[
"returns",
"whether",
"this",
"is",
"a",
"certain",
"mark"
] | [
"return",
"certain",
";"
] |
[
"returns",
"whether",
"this",
"mark",
"has",
"a",
"shorter",
"chain",
"of",
"reasons",
"than",
"the",
"given",
"mark"
] | [
"return",
"this",
"depth",
"<",
"other",
"usage",
"mark",
"depth",
";"
] |
[
"returns",
"whether",
"this",
"is",
"mark",
"is",
"caused",
"by",
"the",
"given",
"class"
] | [
"return",
"clazz",
"equals",
"(",
"this",
"clazz",
")",
";"
] |
[
"applies",
"the",
"given",
"class",
"visitor",
"to",
"this",
"mark",
"s",
"class",
"if",
"any",
"and",
"if",
"this",
"mark",
"doesn",
"t",
"have",
"a",
"member"
] | [
"if",
"(",
"clazz",
"!",
"=",
"null",
"&",
"&",
"member",
"=",
"=",
"null",
")",
"{",
"clazz",
"accept",
"(",
"class",
"visitor",
")",
";",
"}"
] |
[
"applies",
"the",
"given",
"class",
"visitor",
"to",
"this",
"mark",
"s",
"member",
"if",
"any"
] | [
"if",
"(",
"clazz",
"!",
"=",
"null",
"&",
"&",
"member",
"!",
"=",
"null",
")",
"{",
"member",
"accept",
"(",
"clazz",
",",
"member",
"visitor",
")",
";",
"}"
] |
[
"start",
"building",
"the",
"response",
"part",
"of",
"the",
"test",
"io",
"restassured",
"specification",
"e",
"g",
"<",
"p",
"/",
">",
"<",
"pre",
">",
"expect",
"(",
")",
"body",
"(",
"lotto",
"lotto",
"id",
"equal",
"to",
"(",
"5",
")",
")",
"when",
"(",
")",
"get",
"(",
"/",
"lotto",
")",
";",
"<",
"/",
"pre",
">",
"<",
"p",
"/",
">",
"will",
"expect",
"that",
"the",
"response",
"body",
"for",
"the",
"get",
"request",
"to",
"/",
"lotto",
"should",
"contain",
"json",
"or",
"xml",
"which",
"has",
"a",
"lotto",
"id",
"equal",
"to",
"5"
] | [
"return",
"create",
"test",
"specification",
"(",
")",
"get",
"response",
"specification",
"(",
")",
";"
] |
[
"start",
"building",
"the",
"request",
"part",
"of",
"the",
"test",
"io",
"restassured",
"specification",
"e",
"g",
"<",
"p",
"/",
">",
"<",
"pre",
">",
"with",
"(",
")",
"parameters",
"(",
"first",
"name",
"john",
"last",
"name",
"doe",
")",
"when",
"(",
")",
"post",
"(",
"/",
"greet",
"x",
"m",
"l",
")",
"then",
"(",
")",
"assert",
"that",
"(",
")",
"body",
"(",
"greeting",
"first",
"name",
"equal",
"to",
"(",
"john",
")",
")",
";",
"<",
"/",
"pre",
">",
"<",
"p",
"/",
">",
"will",
"send",
"a",
"post",
"request",
"to",
"/",
"greet",
"x",
"m",
"l",
"with",
"request",
"parameters",
"<",
"tt",
">",
"first",
"name",
"=",
"john",
"<",
"/",
"tt",
">",
"and",
"<",
"tt",
">",
"last",
"name",
"=",
"doe",
"<",
"/",
"tt",
">",
"and",
"expect",
"that",
"the",
"response",
"body",
"containing",
"json",
"or",
"xml",
"first",
"name",
"equal",
"to",
"john",
"<",
"p",
"/",
">",
"the",
"only",
"difference",
"between",
"{",
"@",
"link",
"#",
"with",
"(",
")",
"}",
"and",
"{",
"@",
"link",
"#",
"given",
"(",
")",
"}",
"is",
"syntactical"
] | [
"return",
"given",
"(",
")",
";"
] |
[
"create",
"a",
"list",
"of",
"arguments",
"that",
"can",
"be",
"used",
"to",
"create",
"parts",
"of",
"the",
"path",
"in",
"a",
"body",
"/",
"content",
"expression",
"this",
"is",
"useful",
"in",
"situations",
"where",
"you",
"have",
"e",
"g",
"pre",
"-",
"defined",
"variables",
"that",
"constitutes",
"the",
"key",
"for",
"example",
":",
"<",
"pre",
">",
"string",
"some",
"sub",
"path",
"=",
"else",
";",
"int",
"index",
"=",
"1",
";",
"expect",
"(",
")",
"body",
"(",
"something",
"%",
"s",
"[",
"%",
"d",
"]",
"with",
"args",
"(",
"some",
"sub",
"path",
"index",
")",
"equal",
"to",
"(",
"some",
"value",
")",
")",
"<",
"/",
"pre",
">",
"<",
"p",
"/",
">",
"or",
"if",
"you",
"have",
"complex",
"root",
"paths",
"and",
"don",
"t",
"wish",
"to",
"duplicate",
"the",
"path",
"for",
"small",
"variations",
":",
"<",
"pre",
">",
"get",
"(",
"/",
"x",
")",
"then",
"(",
")",
"assert",
"that",
"(",
")",
"root",
"(",
"filters",
"filter",
"config",
"[",
"%",
"d",
"]",
"filter",
"config",
"groups",
"find",
"{",
"it",
"name",
"=",
"=",
"gold",
"}",
"includes",
")",
"body",
"(",
"with",
"args",
"(",
"0",
")",
"has",
"item",
"(",
"first",
")",
")",
"body",
"(",
"with",
"args",
"(",
"1",
")",
"has",
"item",
"(",
"second",
")",
")",
"<",
"/",
"pre",
">",
"<",
"p",
"/",
">",
"the",
"key",
"and",
"arguments",
"follows",
"the",
"standard",
"<",
"a",
"href",
"=",
"http",
":",
"/",
"/",
"download",
"oracle",
"com",
"/",
"javase",
"/",
"1",
"5",
"0",
"/",
"docs",
"/",
"api",
"/",
"java",
"/",
"util",
"/",
"formatter",
"html",
"#",
"syntax",
">",
"formatting",
"syntax",
"<",
"/",
"a",
">",
"of",
"java"
] | [
"return",
"with",
"args",
"(",
"first",
"argument",
",",
"additional",
"arguments",
")",
";"
] |
[
"create",
"a",
"list",
"of",
"no",
"arguments",
"that",
"can",
"be",
"used",
"to",
"create",
"parts",
"of",
"the",
"path",
"in",
"a",
"response",
"specification",
"for",
"json",
"xml",
"or",
"html",
"validation",
"this",
"is",
"useful",
"in",
"situations",
"where",
"you",
"have",
"e",
"g",
"pre",
"-",
"defined",
"variables",
"that",
"constitutes",
"the",
"key",
"for",
"example",
":",
"<",
"pre",
">",
"get",
"(",
"/",
"json",
"store",
")",
"then",
"(",
")",
"root",
"(",
"store",
"%",
"s",
"with",
"args",
"(",
"book",
")",
")",
"body",
"(",
"category",
"size",
"(",
")",
"equal",
"to",
"(",
"4",
")",
")",
"append",
"root",
"(",
"%",
"s",
"%",
"s",
"with",
"args",
"(",
"author",
"size",
"(",
")",
")",
")",
"body",
"(",
"with",
"no",
"arguments",
"(",
")",
"equal",
"to",
"(",
"4",
")",
")",
";",
"<",
"/",
"pre",
">",
"<",
"p",
"/",
">"
] | [
"return",
"with",
"no",
"args",
"(",
")",
";"
] |
[
"create",
"a",
"list",
"of",
"no",
"arguments",
"that",
"can",
"be",
"used",
"to",
"create",
"parts",
"of",
"the",
"path",
"in",
"a",
"response",
"specification",
"for",
"json",
"xml",
"or",
"html",
"validation",
"this",
"is",
"useful",
"in",
"situations",
"where",
"you",
"have",
"e",
"g",
"pre",
"-",
"defined",
"variables",
"that",
"constitutes",
"the",
"key",
"for",
"example",
":",
"<",
"pre",
">",
"get",
"(",
"/",
"json",
"store",
")",
"then",
"(",
")",
"root",
"(",
"store",
"%",
"s",
"with",
"args",
"(",
"book",
")",
")",
"body",
"(",
"category",
"size",
"(",
")",
"equal",
"to",
"(",
"4",
")",
")",
"append",
"root",
"(",
"%",
"s",
"%",
"s",
"with",
"args",
"(",
"author",
"size",
"(",
")",
")",
")",
"body",
"(",
"with",
"no",
"args",
"(",
")",
"equal",
"to",
"(",
"4",
")",
")",
";"
] | [
"return",
"collections",
"unmodifiable",
"list",
"(",
"collections",
"<",
"argument",
">",
"empty",
"list",
"(",
")",
")",
";"
] |
[
"start",
"building",
"the",
"request",
"part",
"of",
"the",
"test",
"io",
"restassured",
"specification",
"e",
"g",
"<",
"p",
"/",
">",
"<",
"pre",
">",
"given",
"(",
")",
"parameters",
"(",
"first",
"name",
"john",
"last",
"name",
"doe",
")",
"when",
"(",
")",
"post",
"(",
"/",
"greet",
"x",
"m",
"l",
")",
"then",
"(",
")",
"body",
"(",
"greeting",
"first",
"name",
"equal",
"to",
"(",
"john",
")",
")",
";",
"<",
"/",
"pre",
">",
"<",
"p",
"/",
">",
"will",
"send",
"a",
"post",
"request",
"to",
"/",
"greet",
"x",
"m",
"l",
"with",
"request",
"parameters",
"<",
"tt",
">",
"first",
"name",
"=",
"john",
"<",
"/",
"tt",
">",
"and",
"<",
"tt",
">",
"last",
"name",
"=",
"doe",
"<",
"/",
"tt",
">",
"and",
"expect",
"that",
"the",
"response",
"body",
"containing",
"json",
"or",
"xml",
"first",
"name",
"equal",
"to",
"john",
"<",
"p",
"/",
">",
"the",
"only",
"difference",
"between",
"{",
"@",
"link",
"#",
"with",
"(",
")",
"}",
"and",
"{",
"@",
"link",
"#",
"given",
"(",
")",
"}",
"is",
"syntactical"
] | [
"return",
"create",
"test",
"specification",
"(",
")",
"get",
"request",
"specification",
"(",
")",
";"
] |
[
"start",
"building",
"the",
"dsl",
"expression",
"by",
"sending",
"a",
"request",
"without",
"any",
"parameters",
"or",
"headers",
"etc",
"e",
"g",
"<",
"p",
"/",
">",
"<",
"pre",
">",
"when",
"(",
")",
"get",
"(",
"/",
"x",
")",
"then",
"(",
")",
"body",
"(",
"x",
"y",
"z",
"1",
"equal",
"to",
"(",
"z1",
")",
")",
"body",
"(",
"x",
"y",
"z",
"2",
"equal",
"to",
"(",
"z2",
")",
")",
";",
"<",
"/",
"pre",
">",
"<",
"p",
">",
"note",
"that",
"if",
"you",
"need",
"to",
"add",
"parameters",
"headers",
"cookies",
"or",
"other",
"request",
"properties",
"use",
"the",
"{",
"@",
"link",
"#",
"given",
"(",
")",
"}",
"method",
"<",
"/",
"p",
">"
] | [
"return",
"create",
"test",
"specification",
"(",
")",
"get",
"request",
"specification",
"(",
")",
";"
] |
[
"when",
"you",
"have",
"long",
"specifications",
"it",
"can",
"be",
"better",
"to",
"split",
"up",
"the",
"definition",
"of",
"response",
"and",
"request",
"specifications",
"in",
"multiple",
"lines",
"you",
"can",
"then",
"pass",
"the",
"response",
"and",
"request",
"specifications",
"to",
"this",
"method",
"e",
"g",
"<",
"p",
"/",
">",
"<",
"pre",
">",
"request",
"specification",
"request",
"specification",
"=",
"with",
"(",
")",
"parameters",
"(",
"first",
"name",
"john",
"last",
"name",
"doe",
")",
";",
"response",
"specification",
"response",
"specification",
"=",
"expect",
"(",
")",
"body",
"(",
"greeting",
"equal",
"to",
"(",
"greetings",
"john",
"doe",
")",
")",
";",
"given",
"(",
"request",
"specification",
"response",
"specification",
")",
"get",
"(",
"/",
"greet",
")",
";",
"<",
"/",
"pre",
">",
"<",
"p",
"/",
">",
"this",
"will",
"perform",
"a",
"get",
"request",
"to",
"/",
"greet",
"and",
"verify",
"it",
"according",
"to",
"the",
"<",
"code",
">",
"response",
"specification",
"<",
"/",
"code",
">"
] | [
"return",
"new",
"test",
"specification",
"impl",
"(",
"request",
"specification",
",",
"response",
"specification",
")",
";"
] |
[
"when",
"you",
"re",
"only",
"interested",
"in",
"supplying",
"a",
"predefined",
"request",
"specification",
"without",
"a",
"response",
"specification",
"then",
"you",
"can",
"use",
"this",
"method",
"for",
"example",
":",
"<",
"p",
"/",
">",
"<",
"pre",
">",
"request",
"specification",
"request",
"specification",
"=",
"with",
"(",
")",
"parameters",
"(",
"first",
"name",
"john",
"last",
"name",
"doe",
")",
";",
"given",
"(",
"request",
"specification",
")",
"get",
"(",
"/",
"greet",
")",
";",
"<",
"/",
"pre",
">",
"<",
"p",
"/",
">",
"this",
"will",
"perform",
"a",
"get",
"request",
"to",
"/",
"greet",
"and",
"without",
"any",
"validation",
"(",
"only",
"a",
"static",
"response",
"specification",
"has",
"been",
"configured",
")"
] | [
"return",
"given",
"(",
")",
"spec",
"(",
"request",
"specification",
")",
";"
] |
[
"perform",
"a",
"get",
"request",
"to",
"a",
"<",
"code",
">",
"path",
"<",
"/",
"code",
">",
"normally",
"the",
"path",
"doesn",
"t",
"have",
"to",
"be",
"fully",
"-",
"qualified",
"e",
"g",
"you",
"don",
"t",
"need",
"to",
"specify",
"the",
"path",
"as",
"<",
"tt",
">",
"http",
":",
"/",
"/",
"localhost",
":",
"8080",
"/",
"path",
"<",
"/",
"tt",
">",
"in",
"this",
"case",
"it",
"s",
"enough",
"to",
"use",
"<",
"tt",
">",
"/",
"path",
"<",
"/",
"tt",
">"
] | [
"return",
"given",
"(",
")",
"get",
"(",
"path",
",",
"path",
"params",
")",
";"
] |
[
"perform",
"a",
"get",
"request",
"to",
"a",
"<",
"code",
">",
"path",
"<",
"/",
"code",
">",
"normally",
"the",
"path",
"doesn",
"t",
"have",
"to",
"be",
"fully",
"-",
"qualified",
"e",
"g",
"you",
"don",
"t",
"need",
"to",
"specify",
"the",
"path",
"as",
"<",
"tt",
">",
"http",
":",
"/",
"/",
"localhost",
":",
"8080",
"/",
"path",
"<",
"/",
"tt",
">",
"in",
"this",
"case",
"it",
"s",
"enough",
"to",
"use",
"<",
"tt",
">",
"/",
"path",
"<",
"/",
"tt",
">"
] | [
"return",
"given",
"(",
")",
"get",
"(",
"path",
",",
"path",
"params",
")",
";"
] |
[
"perform",
"a",
"post",
"request",
"to",
"a",
"<",
"code",
">",
"path",
"<",
"/",
"code",
">",
"normally",
"the",
"path",
"doesn",
"t",
"have",
"to",
"be",
"fully",
"-",
"qualified",
"e",
"g",
"you",
"don",
"t",
"need",
"to",
"specify",
"the",
"path",
"as",
"<",
"tt",
">",
"http",
":",
"/",
"/",
"localhost",
":",
"8080",
"/",
"path",
"<",
"/",
"tt",
">",
"in",
"this",
"case",
"it",
"s",
"enough",
"to",
"use",
"<",
"tt",
">",
"/",
"path",
"<",
"/",
"tt",
">"
] | [
"return",
"given",
"(",
")",
"post",
"(",
"path",
",",
"path",
"params",
")",
";"
] |
[
"perform",
"a",
"post",
"request",
"to",
"a",
"<",
"code",
">",
"path",
"<",
"/",
"code",
">",
"normally",
"the",
"path",
"doesn",
"t",
"have",
"to",
"be",
"fully",
"-",
"qualified",
"e",
"g",
"you",
"don",
"t",
"need",
"to",
"specify",
"the",
"path",
"as",
"<",
"tt",
">",
"http",
":",
"/",
"/",
"localhost",
":",
"8080",
"/",
"path",
"<",
"/",
"tt",
">",
"in",
"this",
"case",
"it",
"s",
"enough",
"to",
"use",
"<",
"tt",
">",
"/",
"path",
"<",
"/",
"tt",
">"
] | [
"return",
"given",
"(",
")",
"post",
"(",
"path",
",",
"path",
"params",
")",
";"
] |
[
"perform",
"a",
"put",
"request",
"to",
"a",
"<",
"code",
">",
"path",
"<",
"/",
"code",
">",
"normally",
"the",
"path",
"doesn",
"t",
"have",
"to",
"be",
"fully",
"-",
"qualified",
"e",
"g",
"you",
"don",
"t",
"need",
"to",
"specify",
"the",
"path",
"as",
"<",
"tt",
">",
"http",
":",
"/",
"/",
"localhost",
":",
"8080",
"/",
"path",
"<",
"/",
"tt",
">",
"in",
"this",
"case",
"it",
"s",
"enough",
"to",
"use",
"<",
"tt",
">",
"/",
"path",
"<",
"/",
"tt",
">"
] | [
"return",
"given",
"(",
")",
"put",
"(",
"path",
",",
"path",
"params",
")",
";"
] |
[
"perform",
"a",
"delete",
"request",
"to",
"a",
"<",
"code",
">",
"path",
"<",
"/",
"code",
">",
"normally",
"the",
"path",
"doesn",
"t",
"have",
"to",
"be",
"fully",
"-",
"qualified",
"e",
"g",
"you",
"don",
"t",
"need",
"to",
"specify",
"the",
"path",
"as",
"<",
"tt",
">",
"http",
":",
"/",
"/",
"localhost",
":",
"8080",
"/",
"path",
"<",
"/",
"tt",
">",
"in",
"this",
"case",
"it",
"s",
"enough",
"to",
"use",
"<",
"tt",
">",
"/",
"path",
"<",
"/",
"tt",
">"
] | [
"return",
"given",
"(",
")",
"delete",
"(",
"path",
",",
"path",
"params",
")",
";"
] |
[
"perform",
"a",
"delete",
"request",
"to",
"a",
"<",
"code",
">",
"path",
"<",
"/",
"code",
">",
"normally",
"the",
"path",
"doesn",
"t",
"have",
"to",
"be",
"fully",
"-",
"qualified",
"e",
"g",
"you",
"don",
"t",
"need",
"to",
"specify",
"the",
"path",
"as",
"<",
"tt",
">",
"http",
":",
"/",
"/",
"localhost",
":",
"8080",
"/",
"path",
"<",
"/",
"tt",
">",
"in",
"this",
"case",
"it",
"s",
"enough",
"to",
"use",
"<",
"tt",
">",
"/",
"path",
"<",
"/",
"tt",
">"
] | [
"return",
"given",
"(",
")",
"delete",
"(",
"path",
",",
"path",
"params",
")",
";"
] |
[
"perform",
"a",
"head",
"request",
"to",
"a",
"<",
"code",
">",
"path",
"<",
"/",
"code",
">",
"normally",
"the",
"path",
"doesn",
"t",
"have",
"to",
"be",
"fully",
"-",
"qualified",
"e",
"g",
"you",
"don",
"t",
"need",
"to",
"specify",
"the",
"path",
"as",
"<",
"tt",
">",
"http",
":",
"/",
"/",
"localhost",
":",
"8080",
"/",
"path",
"<",
"/",
"tt",
">",
"in",
"this",
"case",
"it",
"s",
"enough",
"to",
"use",
"<",
"tt",
">",
"/",
"path",
"<",
"/",
"tt",
">"
] | [
"return",
"given",
"(",
")",
"head",
"(",
"path",
",",
"path",
"params",
")",
";"
] |
[
"perform",
"a",
"head",
"request",
"to",
"a",
"<",
"code",
">",
"path",
"<",
"/",
"code",
">",
"normally",
"the",
"path",
"doesn",
"t",
"have",
"to",
"be",
"fully",
"-",
"qualified",
"e",
"g",
"you",
"don",
"t",
"need",
"to",
"specify",
"the",
"path",
"as",
"<",
"tt",
">",
"http",
":",
"/",
"/",
"localhost",
":",
"8080",
"/",
"path",
"<",
"/",
"tt",
">",
"in",
"this",
"case",
"it",
"s",
"enough",
"to",
"use",
"<",
"tt",
">",
"/",
"path",
"<",
"/",
"tt",
">"
] | [
"return",
"given",
"(",
")",
"head",
"(",
"path",
",",
"path",
"params",
")",
";"
] |
[
"perform",
"a",
"patch",
"request",
"to",
"a",
"<",
"code",
">",
"path",
"<",
"/",
"code",
">",
"normally",
"the",
"path",
"doesn",
"t",
"have",
"to",
"be",
"fully",
"-",
"qualified",
"e",
"g",
"you",
"don",
"t",
"need",
"to",
"specify",
"the",
"path",
"as",
"<",
"tt",
">",
"http",
":",
"/",
"/",
"localhost",
":",
"8080",
"/",
"path",
"<",
"/",
"tt",
">",
"in",
"this",
"case",
"it",
"s",
"enough",
"to",
"use",
"<",
"tt",
">",
"/",
"path",
"<",
"/",
"tt",
">"
] | [
"return",
"given",
"(",
")",
"patch",
"(",
"path",
",",
"path",
"params",
")",
";"
] |
[
"perform",
"a",
"patch",
"request",
"to",
"a",
"<",
"code",
">",
"path",
"<",
"/",
"code",
">",
"normally",
"the",
"path",
"doesn",
"t",
"have",
"to",
"be",
"fully",
"-",
"qualified",
"e",
"g",
"you",
"don",
"t",
"need",
"to",
"specify",
"the",
"path",
"as",
"<",
"tt",
">",
"http",
":",
"/",
"/",
"localhost",
":",
"8080",
"/",
"path",
"<",
"/",
"tt",
">",
"in",
"this",
"case",
"it",
"s",
"enough",
"to",
"use",
"<",
"tt",
">",
"/",
"path",
"<",
"/",
"tt",
">"
] | [
"return",
"given",
"(",
")",
"patch",
"(",
"path",
",",
"path",
"params",
")",
";"
] |
[
"perform",
"a",
"options",
"request",
"to",
"a",
"<",
"code",
">",
"path",
"<",
"/",
"code",
">",
"normally",
"the",
"path",
"doesn",
"t",
"have",
"to",
"be",
"fully",
"-",
"qualified",
"e",
"g",
"you",
"don",
"t",
"need",
"to",
"specify",
"the",
"path",
"as",
"<",
"tt",
">",
"http",
":",
"/",
"/",
"localhost",
":",
"8080",
"/",
"path",
"<",
"/",
"tt",
">",
"in",
"this",
"case",
"it",
"s",
"enough",
"to",
"use",
"<",
"tt",
">",
"/",
"path",
"<",
"/",
"tt",
">"
] | [
"return",
"given",
"(",
")",
"options",
"(",
"path",
",",
"path",
"params",
")",
";"
] |
[
"perform",
"a",
"options",
"request",
"to",
"a",
"<",
"code",
">",
"path",
"<",
"/",
"code",
">",
"normally",
"the",
"path",
"doesn",
"t",
"have",
"to",
"be",
"fully",
"-",
"qualified",
"e",
"g",
"you",
"don",
"t",
"need",
"to",
"specify",
"the",
"path",
"as",
"<",
"tt",
">",
"http",
":",
"/",
"/",
"localhost",
":",
"8080",
"/",
"path",
"<",
"/",
"tt",
">",
"in",
"this",
"case",
"it",
"s",
"enough",
"to",
"use",
"<",
"tt",
">",
"/",
"path",
"<",
"/",
"tt",
">"
] | [
"return",
"given",
"(",
")",
"options",
"(",
"path",
",",
"path",
"params",
")",
";"
] |
[
"perform",
"a",
"get",
"request",
"to",
"a",
"<",
"code",
">",
"uri",
"<",
"/",
"code",
">"
] | [
"return",
"given",
"(",
")",
"get",
"(",
"uri",
")",
";"
] |
[
"perform",
"a",
"post",
"request",
"to",
"a",
"<",
"code",
">",
"uri",
"<",
"/",
"code",
">"
] | [
"return",
"given",
"(",
")",
"post",
"(",
"uri",
")",
";"
] |
[
"perform",
"a",
"put",
"request",
"to",
"a",
"<",
"code",
">",
"uri",
"<",
"/",
"code",
">"
] | [
"return",
"given",
"(",
")",
"put",
"(",
"uri",
")",
";"
] |
[
"perform",
"a",
"delete",
"request",
"to",
"a",
"<",
"code",
">",
"uri",
"<",
"/",
"code",
">"
] | [
"return",
"given",
"(",
")",
"delete",
"(",
"uri",
")",
";"
] |
[
"perform",
"a",
"head",
"request",
"to",
"a",
"<",
"code",
">",
"uri",
"<",
"/",
"code",
">"
] | [
"return",
"given",
"(",
")",
"head",
"(",
"uri",
")",
";"
] |
[
"perform",
"a",
"patch",
"request",
"to",
"a",
"<",
"code",
">",
"uri",
"<",
"/",
"code",
">"
] | [
"return",
"given",
"(",
")",
"patch",
"(",
"uri",
")",
";"
] |
[
"perform",
"a",
"options",
"request",
"to",
"a",
"<",
"code",
">",
"uri",
"<",
"/",
"code",
">"
] | [
"return",
"given",
"(",
")",
"options",
"(",
"uri",
")",
";"
] |
[
"perform",
"a",
"get",
"request",
"to",
"a",
"<",
"code",
">",
"url",
"<",
"/",
"code",
">"
] | [
"return",
"given",
"(",
")",
"get",
"(",
"url",
")",
";"
] |
[
"perform",
"a",
"post",
"request",
"to",
"a",
"<",
"code",
">",
"url",
"<",
"/",
"code",
">"
] | [
"return",
"given",
"(",
")",
"post",
"(",
"url",
")",
";"
] |
[
"perform",
"a",
"put",
"request",
"to",
"a",
"<",
"code",
">",
"url",
"<",
"/",
"code",
">"
] | [
"return",
"given",
"(",
")",
"put",
"(",
"url",
")",
";"
] |
[
"perform",
"a",
"delete",
"request",
"to",
"a",
"<",
"code",
">",
"url",
"<",
"/",
"code",
">"
] | [
"return",
"given",
"(",
")",
"delete",
"(",
"url",
")",
";"
] |
[
"perform",
"a",
"head",
"request",
"to",
"a",
"<",
"code",
">",
"url",
"<",
"/",
"code",
">"
] | [
"return",
"given",
"(",
")",
"head",
"(",
"url",
")",
";"
] |
[
"perform",
"a",
"patch",
"request",
"to",
"a",
"<",
"code",
">",
"url",
"<",
"/",
"code",
">"
] | [
"return",
"given",
"(",
")",
"patch",
"(",
"url",
")",
";"
] |
[
"perform",
"a",
"options",
"request",
"to",
"a",
"<",
"code",
">",
"url",
"<",
"/",
"code",
">"
] | [
"return",
"given",
"(",
")",
"options",
"(",
"url",
")",
";"
] |
[
"perform",
"a",
"get",
"request",
"to",
"the",
"statically",
"configured",
"path",
"(",
"by",
"default",
"<",
"code",
">",
"http",
":",
"/",
"/",
"localhost",
":",
"8080",
"<",
"/",
"code",
">",
")"
] | [
"return",
"given",
"(",
")",
"get",
"(",
")",
";"
] |
[
"perform",
"a",
"post",
"request",
"to",
"the",
"statically",
"configured",
"path",
"(",
"by",
"default",
"<",
"code",
">",
"http",
":",
"/",
"/",
"localhost",
":",
"8080",
"<",
"/",
"code",
">",
")"
] | [
"return",
"given",
"(",
")",
"post",
"(",
")",
";"
] |
[
"perform",
"a",
"put",
"request",
"to",
"the",
"statically",
"configured",
"path",
"(",
"by",
"default",
"<",
"code",
">",
"http",
":",
"/",
"/",
"localhost",
":",
"8080",
"<",
"/",
"code",
">",
")"
] | [
"return",
"given",
"(",
")",
"put",
"(",
")",
";"
] |
[
"perform",
"a",
"delete",
"request",
"to",
"the",
"statically",
"configured",
"path",
"(",
"by",
"default",
"<",
"code",
">",
"http",
":",
"/",
"/",
"localhost",
":",
"8080",
"<",
"/",
"code",
">",
")"
] | [
"return",
"given",
"(",
")",
"delete",
"(",
")",
";"
] |
[
"perform",
"a",
"head",
"request",
"to",
"the",
"statically",
"configured",
"path",
"(",
"by",
"default",
"<",
"code",
">",
"http",
":",
"/",
"/",
"localhost",
":",
"8080",
"<",
"/",
"code",
">",
")"
] | [
"return",
"given",
"(",
")",
"head",
"(",
")",
";"
] |
[
"perform",
"a",
"patch",
"request",
"to",
"the",
"statically",
"configured",
"path",
"(",
"by",
"default",
"<",
"code",
">",
"http",
":",
"/",
"/",
"localhost",
":",
"8080",
"<",
"/",
"code",
">",
")"
] | [
"return",
"given",
"(",
")",
"patch",
"(",
")",
";"
] |
[
"perform",
"a",
"options",
"request",
"to",
"the",
"statically",
"configured",
"path",
"(",
"by",
"default",
"<",
"code",
">",
"http",
":",
"/",
"/",
"localhost",
":",
"8080",
"<",
"/",
"code",
">",
")"
] | [
"return",
"given",
"(",
")",
"options",
"(",
")",
";"
] |
[
"perform",
"a",
"request",
"to",
"the",
"pre",
"-",
"configured",
"path",
"(",
"by",
"default",
"<",
"code",
">",
"http",
":",
"/",
"/",
"localhost",
":",
"8080",
"<",
"/",
"code",
">",
")"
] | [
"return",
"given",
"(",
")",
"request",
"(",
"method",
")",
";"
] |
[
"perform",
"a",
"custom",
"http",
"request",
"to",
"the",
"pre",
"-",
"configured",
"path",
"(",
"by",
"default",
"<",
"code",
">",
"http",
":",
"/",
"/",
"localhost",
":",
"8080",
"<",
"/",
"code",
">",
")"
] | [
"return",
"given",
"(",
")",
"request",
"(",
"method",
")",
";"
] |
[
"perform",
"a",
"http",
"request",
"to",
"a",
"<",
"code",
">",
"path",
"<",
"/",
"code",
">",
"normally",
"the",
"path",
"doesn",
"t",
"have",
"to",
"be",
"fully",
"-",
"qualified",
"e",
"g",
"you",
"don",
"t",
"need",
"to",
"specify",
"the",
"path",
"as",
"<",
"tt",
">",
"http",
":",
"/",
"/",
"localhost",
":",
"8080",
"/",
"path",
"<",
"/",
"tt",
">",
"in",
"this",
"case",
"it",
"s",
"enough",
"to",
"use",
"<",
"tt",
">",
"/",
"path",
"<",
"/",
"tt",
">"
] | [
"return",
"given",
"(",
")",
"request",
"(",
"method",
",",
"path",
",",
"path",
"params",
")",
";"
] |
[
"perform",
"a",
"custom",
"http",
"request",
"to",
"a",
"<",
"code",
">",
"path",
"<",
"/",
"code",
">",
"normally",
"the",
"path",
"doesn",
"t",
"have",
"to",
"be",
"fully",
"-",
"qualified",
"e",
"g",
"you",
"don",
"t",
"need",
"to",
"specify",
"the",
"path",
"as",
"<",
"tt",
">",
"http",
":",
"/",
"/",
"localhost",
":",
"8080",
"/",
"path",
"<",
"/",
"tt",
">",
"in",
"this",
"case",
"it",
"s",
"enough",
"to",
"use",
"<",
"tt",
">",
"/",
"path",
"<",
"/",
"tt",
">"
] | [
"return",
"given",
"(",
")",
"request",
"(",
"method",
",",
"path",
",",
"path",
"params",
")",
";"
] |
[
"perform",
"a",
"request",
"to",
"a",
"<",
"code",
">",
"uri",
"<",
"/",
"code",
">"
] | [
"return",
"given",
"(",
")",
"request",
"(",
"method",
",",
"uri",
")",
";"
] |
[
"perform",
"a",
"request",
"to",
"a",
"<",
"code",
">",
"url",
"<",
"/",
"code",
">"
] | [
"return",
"given",
"(",
")",
"request",
"(",
"method",
",",
"url",
")",
";"
] |
[
"perform",
"a",
"custom",
"http",
"request",
"to",
"a",
"<",
"code",
">",
"uri",
"<",
"/",
"code",
">"
] | [
"return",
"given",
"(",
")",
"request",
"(",
"method",
",",
"uri",
")",
";"
] |
[
"perform",
"a",
"custom",
"http",
"request",
"to",
"a",
"<",
"code",
">",
"url",
"<",
"/",
"code",
">"
] | [
"return",
"given",
"(",
")",
"request",
"(",
"method",
",",
"url",
")",
";"
] |
[
"create",
"a",
"http",
"basic",
"authentication",
"scheme"
] | [
"final",
"basic",
"auth",
"scheme",
"scheme",
"=",
"new",
"basic",
"auth",
"scheme",
"(",
")",
";",
"scheme",
"set",
"user",
"name",
"(",
"user",
"name",
")",
";",
"scheme",
"set",
"password",
"(",
"password",
")",
";",
"return",
"scheme",
";"
] |
[
"create",
"a",
"ntlm",
"authentication",
"scheme"
] | [
"final",
"n",
"t",
"l",
"m",
"auth",
"scheme",
"scheme",
"=",
"new",
"n",
"t",
"l",
"m",
"auth",
"scheme",
"(",
")",
";",
"scheme",
"set",
"user",
"name",
"(",
"user",
"name",
")",
";",
"scheme",
"set",
"password",
"(",
"password",
")",
";",
"scheme",
"set",
"workstation",
"(",
"workstation",
")",
";",
"scheme",
"set",
"domain",
"(",
"domain",
")",
";",
"return",
"scheme",
";"
] |
[
"use",
"form",
"authentication",
"rest",
"assured",
"will",
"try",
"to",
"parse",
"the",
"response",
"login",
"page",
"and",
"determine",
"and",
"try",
"find",
"the",
"action",
"username",
"and",
"password",
"input",
"field",
"automatically",
"<",
"p",
">",
"note",
"that",
"the",
"request",
"will",
"be",
"much",
"faster",
"if",
"you",
"also",
"supply",
"a",
"form",
"auth",
"configuration",
"<",
"/",
"p",
">"
] | [
"return",
"form",
"(",
"user",
"name",
",",
"password",
",",
"null",
")",
";"
] |
[
"return",
"the",
"http",
"preemptive",
"authentication",
"specification",
"for",
"setting",
"up",
"preemptive",
"authentication",
"requests",
"this",
"means",
"that",
"the",
"authentication",
"details",
"are",
"sent",
"in",
"the",
"request",
"header",
"regardless",
"if",
"the",
"server",
"challenged",
"for",
"authentication",
"or",
"not"
] | [
"return",
"new",
"preemptive",
"auth",
"provider",
"(",
")",
";"
] |
[
"sets",
"a",
"certificate",
"to",
"be",
"used",
"for",
"ssl",
"authentication",
"see",
"{",
"@",
"link",
"java",
"lang",
"class",
"#",
"get",
"resource",
"(",
"string",
")",
"}",
"for",
"how",
"to",
"get",
"a",
"url",
"from",
"a",
"resource",
"on",
"the",
"classpath",
"<",
"p",
">",
"uses",
"ssl",
"settings",
"defined",
"in",
"{",
"@",
"link",
"s",
"s",
"l",
"config",
"}",
"<",
"/",
"p",
">"
] | [
"s",
"s",
"l",
"config",
"ssl",
"config",
"=",
"config",
"(",
")",
"get",
"s",
"s",
"l",
"config",
"(",
")",
";",
"return",
"certificate",
"(",
"cert",
"u",
"r",
"l",
",",
"password",
",",
"certificate",
"auth",
"settings",
"cert",
"auth",
"settings",
"(",
")",
"key",
"store",
"type",
"(",
"ssl",
"config",
"get",
"key",
"store",
"type",
"(",
")",
")",
"trust",
"store",
"(",
"ssl",
"config",
"get",
"trust",
"store",
"(",
")",
")",
"key",
"store",
"(",
"ssl",
"config",
"get",
"key",
"store",
"(",
")",
")",
"trust",
"store",
"type",
"(",
"ssl",
"config",
"get",
"trust",
"store",
"type",
"(",
")",
")",
"x",
"5",
"0",
"9",
"hostname",
"verifier",
"(",
"ssl",
"config",
"get",
"x",
"5",
"0",
"9",
"hostname",
"verifier",
"(",
")",
")",
"port",
"(",
"ssl",
"config",
"get",
"port",
"(",
")",
")",
"ssl",
"socket",
"factory",
"(",
"ssl",
"config",
"get",
"s",
"s",
"l",
"socket",
"factory",
"(",
")",
")",
")",
";"
] |
[
"sets",
"a",
"certificate",
"to",
"be",
"used",
"for",
"ssl",
"authentication",
"see",
"{",
"@",
"link",
"class",
"#",
"get",
"resource",
"(",
"string",
")",
"}",
"for",
"how",
"to",
"get",
"a",
"url",
"from",
"a",
"resource",
"on",
"the",
"classpath",
"<",
"p",
"/",
">"
] | [
"return",
"certificate",
"(",
"cert",
"u",
"r",
"l",
",",
"password",
",",
"\"",
"\"",
",",
"\"",
"\"",
",",
"certificate",
"auth",
"settings",
")",
";"
] |
[
"use",
"http",
"digest",
"authentication",
"note",
"that",
"you",
"need",
"to",
"encode",
"the",
"password",
"yourself"
] | [
"return",
"basic",
"(",
"user",
"name",
",",
"password",
")",
";"
] |
[
"excerpt",
"from",
"the",
"http",
"builder",
"docs",
":",
"<",
"br",
">",
"o",
"auth",
"sign",
"the",
"request",
"note",
"that",
"this",
"currently",
"does",
"not",
"wait",
"for",
"a",
"www",
"-",
"authenticate",
"challenge",
"before",
"sending",
"the",
"the",
"o",
"auth",
"header",
"all",
"requests",
"to",
"all",
"domains",
"will",
"be",
"signed",
"for",
"this",
"instance",
"this",
"assumes",
"you",
"ve",
"already",
"generated",
"an",
"access",
"token",
"and",
"secret",
"token",
"for",
"the",
"site",
"you",
"re",
"targeting",
"for",
"more",
"information",
"on",
"how",
"to",
"achieve",
"this",
"see",
"the",
"<",
"a",
"href",
"=",
"https",
":",
"/",
"/",
"github",
"com",
"/",
"mttkay",
"/",
"signpost",
"/",
"blob",
"/",
"master",
"/",
"docs",
"/",
"getting",
"started",
"md",
"#",
"using",
"-",
"signpost",
">",
"signpost",
"documentation",
"<",
"/",
"a",
">"
] | [
"o",
"auth",
"scheme",
"scheme",
"=",
"new",
"o",
"auth",
"scheme",
"(",
")",
";",
"scheme",
"set",
"consumer",
"key",
"(",
"consumer",
"key",
")",
";",
"scheme",
"set",
"consumer",
"secret",
"(",
"consumer",
"secret",
")",
";",
"scheme",
"set",
"access",
"token",
"(",
"access",
"token",
")",
";",
"scheme",
"set",
"secret",
"token",
"(",
"secret",
"token",
")",
";",
"return",
"scheme",
";"
] |
[
"excerpt",
"from",
"the",
"http",
"builder",
"docs",
":",
"<",
"br",
">",
"o",
"auth",
"sign",
"the",
"request",
"note",
"that",
"this",
"currently",
"does",
"not",
"wait",
"for",
"a",
"www",
"-",
"authenticate",
"challenge",
"before",
"sending",
"the",
"the",
"o",
"auth",
"header",
"all",
"requests",
"to",
"all",
"domains",
"will",
"be",
"signed",
"for",
"this",
"instance",
"this",
"assumes",
"you",
"ve",
"already",
"generated",
"an",
"access",
"token",
"and",
"secret",
"token",
"for",
"the",
"site",
"you",
"re",
"targeting",
"for",
"more",
"information",
"on",
"how",
"to",
"achieve",
"this",
"see",
"the",
"<",
"a",
"href",
"=",
"https",
":",
"/",
"/",
"github",
"com",
"/",
"mttkay",
"/",
"signpost",
"/",
"blob",
"/",
"master",
"/",
"docs",
"/",
"getting",
"started",
"md",
"#",
"using",
"-",
"signpost",
">",
"signpost",
"documentation",
"<",
"/",
"a",
">"
] | [
"o",
"auth",
"scheme",
"scheme",
"=",
"new",
"o",
"auth",
"scheme",
"(",
")",
";",
"scheme",
"set",
"consumer",
"key",
"(",
"consumer",
"key",
")",
";",
"scheme",
"set",
"consumer",
"secret",
"(",
"consumer",
"secret",
")",
";",
"scheme",
"set",
"access",
"token",
"(",
"access",
"token",
")",
";",
"scheme",
"set",
"secret",
"token",
"(",
"secret",
"token",
")",
";",
"scheme",
"set",
"signature",
"(",
"signature",
")",
";",
"return",
"scheme",
";"
] |
[
"o",
"auth",
"sign",
"the",
"request",
"note",
"that",
"this",
"currently",
"does",
"not",
"wait",
"for",
"a",
"www",
"-",
"authenticate",
"challenge",
"before",
"sending",
"the",
"the",
"o",
"auth",
"header",
"all",
"requests",
"to",
"all",
"domains",
"will",
"be",
"signed",
"for",
"this",
"instance"
] | [
"preemptive",
"o",
"auth",
"2",
"header",
"scheme",
"my",
"scheme",
"=",
"new",
"preemptive",
"o",
"auth",
"2",
"header",
"scheme",
"(",
")",
";",
"my",
"scheme",
"set",
"access",
"token",
"(",
"access",
"token",
")",
";",
"return",
"my",
"scheme",
";"
] |
[
"o",
"auth",
"sign",
"the",
"request",
"note",
"that",
"this",
"currently",
"does",
"not",
"wait",
"for",
"a",
"www",
"-",
"authenticate",
"challenge",
"before",
"sending",
"the",
"the",
"o",
"auth",
"header",
"all",
"requests",
"to",
"all",
"domains",
"will",
"be",
"signed",
"for",
"this",
"instance"
] | [
"o",
"auth",
"2",
"scheme",
"scheme",
"=",
"new",
"o",
"auth",
"2",
"scheme",
"(",
")",
";",
"scheme",
"set",
"access",
"token",
"(",
"access",
"token",
")",
";",
"scheme",
"set",
"signature",
"(",
"signature",
")",
";",
"return",
"scheme",
";"
] |
[
"register",
"a",
"custom",
"content",
"-",
"type",
"to",
"be",
"parsed",
"using",
"a",
"predefined",
"parser",
"e",
"g",
"let",
"s",
"say",
"you",
"want",
"parse",
"content",
"-",
"type",
"<",
"tt",
">",
"application",
"/",
"custom",
"<",
"/",
"tt",
">",
"with",
"the",
"xml",
"parser",
"to",
"be",
"able",
"to",
"verify",
"the",
"response",
"using",
"the",
"xml",
"dot",
"notations",
":",
"<",
"pre",
">",
"get",
"(",
"/",
"x",
")",
"then",
"(",
")",
"assert",
"that",
"(",
")",
"body",
"(",
"document",
"child",
"equals",
"to",
"(",
"something",
")",
")",
"<",
"/",
"pre",
">",
"since",
"<",
"tt",
">",
"application",
"/",
"custom",
"<",
"/",
"tt",
">",
"is",
"not",
"registered",
"to",
"be",
"processed",
"by",
"the",
"xml",
"parser",
"by",
"default",
"you",
"need",
"to",
"explicitly",
"tell",
"rest",
"assured",
"to",
"use",
"this",
"parser",
"before",
"making",
"the",
"request",
":",
"<",
"pre",
">",
"rest",
"assured",
"register",
"parser",
"(",
"application",
"/",
"custom",
"parser",
"xml",
")",
";",
"<",
"/",
"pre",
">"
] | [
"response",
"parser",
"registrar",
"register",
"parser",
"(",
"content",
"type",
",",
"parser",
")",
";"
] |
[
"unregister",
"the",
"parser",
"associated",
"with",
"the",
"provided",
"content",
"-",
"type"
] | [
"response",
"parser",
"registrar",
"unregister",
"parser",
"(",
"content",
"type",
")",
";"
] |
[
"resets",
"the",
"{"
] | [
"base",
"u",
"r",
"i",
"=",
"default",
"uri",
";",
"port",
"=",
"undefined",
"port",
";",
"base",
"path",
"=",
"default",
"path",
";",
"authentication",
"=",
"default",
"auth",
";",
"root",
"path",
"=",
"default",
"body",
"root",
"path",
";",
"filters",
"=",
"new",
"linked",
"list",
"<",
"filter",
">",
"(",
")",
";",
"request",
"specification",
"=",
"null",
";",
"response",
"specification",
"=",
"null",
";",
"url",
"encoding",
"enabled",
"=",
"default",
"url",
"encoding",
"enabled",
";",
"response",
"parser",
"registrar",
"=",
"new",
"response",
"parser",
"registrar",
"(",
")",
";",
"default",
"parser",
"=",
"null",
";",
"config",
"=",
"new",
"rest",
"assured",
"config",
"(",
")",
";",
"session",
"id",
"=",
"default",
"session",
"id",
"value",
";",
"proxy",
"=",
"null",
";"
] |
[
"use",
"relaxed",
"http",
"validation",
"with",
"protocol",
"{"
] | [
"use",
"relaxed",
"h",
"t",
"t",
"p",
"s",
"validation",
"(",
"ssl",
")",
";"
] |
[
"use",
"relaxed",
"http",
"validation",
"with",
"a",
"specific",
"protocol",
"this",
"means",
"that",
"you",
"ll",
"trust",
"all",
"hosts",
"regardless",
"if",
"the",
"ssl",
"certificate",
"is",
"invalid",
"by",
"using",
"this",
"method",
"you",
"don",
"t",
"need",
"to",
"specify",
"a",
"keystore",
"(",
"see",
"{",
"@",
"link",
"#",
"key",
"store",
"(",
"string",
"string",
")",
"}",
"or",
"trust",
"store",
"(",
"see",
"{",
"@",
"link",
"#",
"trust",
"store",
"(",
"java",
"security",
"key",
"store",
")",
"}",
"<",
"p",
">",
"this",
"is",
"just",
"a",
"shortcut",
"for",
":",
"<",
"/",
"p",
">",
"<",
"pre",
">",
"rest",
"assured",
"config",
"=",
"rest",
"assured",
"config",
"(",
")",
"ssl",
"config",
"(",
"ssl",
"config",
"(",
")",
"relaxed",
"h",
"t",
"t",
"p",
"s",
"validation",
"(",
"&",
"lt",
";",
"protocol",
"&",
"gt",
";",
")",
")",
";",
"<",
"/",
"pre",
">"
] | [
"config",
"=",
"rest",
"assured",
"config",
"(",
")",
"ssl",
"config",
"(",
"s",
"s",
"l",
"config",
"ssl",
"config",
"(",
")",
"relaxed",
"h",
"t",
"t",
"p",
"s",
"validation",
"(",
"protocol",
")",
")",
";"
] |
[
"uses",
"the",
"user",
"default",
"keystore",
"stored",
"in",
"@",
"{",
"user",
"home",
"}",
"/",
"keystore",
"*",
"<",
"p",
">",
"note",
"that",
"this",
"is",
"just",
"a",
"shortcut",
"for",
":",
"<",
"/",
"p",
">",
"<",
"pre",
">",
"rest",
"assured",
"config",
"=",
"rest",
"assured",
"config",
"(",
")",
"ssl",
"config",
"(",
"ssl",
"config",
"(",
")",
"key",
"store",
"(",
"password",
")",
")",
";",
"<",
"/",
"pre",
">"
] | [
"apply",
"key",
"store",
"(",
"null",
",",
"password",
")",
";"
] |
[
"instruct",
"rest",
"assured",
"to",
"connect",
"to",
"a",
"proxy",
"on",
"the",
"specified",
"host",
"and",
"port"
] | [
"proxy",
"(",
"host",
"(",
"host",
")",
"with",
"port",
"(",
"port",
")",
")",
";"
] |
[
"instruct",
"rest",
"assured",
"to",
"connect",
"to",
"a",
"proxy",
"on",
"the",
"specified",
"port",
"on",
"localhost"
] | [
"proxy",
"(",
"proxy",
"specification",
"port",
"(",
"port",
")",
")",
";"
] |
[
"instruct",
"rest",
"assured",
"to",
"connect",
"to",
"a",
"proxy",
"on",
"the",
"specified",
"port",
"on",
"localhost",
"with",
"a",
"specific",
"scheme"
] | [
"proxy",
"(",
"new",
"proxy",
"specification",
"(",
"host",
",",
"port",
",",
"scheme",
")",
")",
";"
] |
[
"instruct",
"rest",
"assured",
"to",
"connect",
"to",
"a",
"proxy",
"using",
"a",
"{",
"@",
"link",
"proxy",
"specification",
"}"
] | [
"rest",
"assured",
"proxy",
"=",
"proxy",
"specification",
";"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.