1065N/A * The contents of this file are subject to the terms of the 1065N/A * Common Development and Distribution License (the "License"). 1065N/A * You may not use this file except in compliance with the License. 1065N/A * language governing permissions and limitations under the License. 1065N/A * When distributing Covered Code, include this CDDL HEADER in each 1065N/A * If applicable, add the following below this CDDL HEADER, with the 1065N/A * fields enclosed by brackets "[]" replaced with your own identifying 1065N/A * information: Portions Copyright [yyyy] [name of copyright owner] 1065N/A * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. 1065N/A * Unit tests for the {@code HistoryContext} class. 1065N/A // The queries that don't contain a "hist" term are considered empty. 1065N/A // Construct a query equivalent to hist:dummy 1065N/A "Created a small <b>dummy</b> program"));
1065N/A // Construct a query equivalent to hist:"dummy program" 1065N/A "Created a small <b>dummy program</b>"));
1065N/A // Search for a term that doesn't exist 1065N/A // Search for term with multiple hits - hist:small OR hist:target 1065N/A "Add lint make <b>target</b> and fix lint warnings"));
1065N/A "Created a <b>small</b> dummy program"));
1065N/A // Construct a query equivalent to hist:dummy 1065N/A "Created a small <b>dummy</b> program"));
1065N/A // Construct a query equivalent to hist:"dummy program" 1065N/A "Created a small <b>dummy program</b>"));
1065N/A // Search for a term that doesn't exist 1065N/A // Search for term with multiple hits - hist:small OR hist:target 1065N/A "Add lint make <b>target</b> and fix lint warnings"));
1065N/A "Created a <b>small</b> dummy program"));