<commit_before>/*
 * Copyright 2014 Google. Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.google.k2crypto.storage;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;

import com.google.k2crypto.K2Exception;
import com.google.k2crypto.Key;
import com.google.k2crypto.K2Context;

import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;

import java.net.URI;

/**
 * Unit tests for the Store wrapper.
 * 
 * @author <EMAIL> (<NAME>)
 */
@RunWith(JUnit4.class)
public class StoreTest {
  
  private static final String ADDRESS_FRAGMENT = "://my_keys";
  
  private K2Context context = null;
  private InstalledDriver normalDriver = null;
  private Key saveKey = null;
  private Key wrapKeyA = null;
  private Key wrapKeyB = null;
  
  /**
   * Creates the mock drivers (and other objects) that will be passed to the
   * store for testing.
   */
  @Before public final void setUp() {
    context = new K2Context();
    try {<commit_msg>Small comment edit.<commit_after>/*
 * Copyright 2014 Google. Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.google.k2crypto.storage;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;

import com.google.k2crypto.K2Exception;
import com.google.k2crypto.Key;
import com.google.k2crypto.K2Context;

import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;

import java.net.URI;

/**
 * Unit tests for the Store wrapper.
 * 
 * @author <EMAIL> (<NAME>)
 */
@RunWith(JUnit4.class)
public class StoreTest {
  
  private static final String ADDRESS_FRAGMENT = "://my_keys";
  
  private K2Context context = null;
  private InstalledDriver normalDriver = null;
  private Key saveKey = null;
  private Key wrapKeyA = null;
  private Key wrapKeyB = null;
  
  /**
   * Creates the mock driver (and other objects) that will be passed to the
   * store for testing.
   */
  @Before public final void setUp() {
    context = new K2Context();
    try {
{'fraction_non_alphanumeric': 0.09290590679726922, 'fraction_numerical': 0.01068566340160285, 'mean_word_length': 3.8840579710144927, 'pattern_counts': {'":': 2, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3018217', 'n_tokens_mistral': 987, 'n_tokens_neox': 976, 'n_words': 362}