2 * ============LICENSE_START====================================================
4 * ===========================================================================
5 * Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.
6 * ===========================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * ============LICENSE_END====================================================
21 package org.onap.aaf.auth.local.test;
24 import java.util.ArrayList;
25 import java.util.List;
26 import static org.junit.Assert.*;
27 import org.junit.AfterClass;
28 import org.junit.Test;
29 import org.onap.aaf.auth.local.DataFile;
30 import org.onap.aaf.auth.local.DataFile.Token;
31 import org.onap.aaf.auth.local.DataFile.Token.Field;
33 public class JU_DataFile {
36 public static void tearDownAfterClass() throws Exception {
40 // public void netYetTested() {
41 // fail("Tests not yet implemented");
45 // public void test() throws Exception {
46 // File file = new File("../authz-batch/data/v1.dat");
47 // DataFile df = new DataFile(file,"r");
49 // List<String> list = new ArrayList<>();
52 // Token tok = df.new Token(1024000);
53 // Field fld = tok.new Field('|');
55 // while(tok.nextLine()) {
58 // list.add(fld.at(0));
60 //// Collections.sort(list);
61 // for(String s: list) {
62 // System.out.println(s);
66 // System.out.printf("%15s:%12d\n","Total",count);