Skip to content

Commit

Permalink
tests: add pure unit-test for sqlite-exception, p.s. this one is more…
Browse files Browse the repository at this point in the history
… like to improve unit-test converage percent
  • Loading branch information
Jacksgong committed Apr 13, 2018
1 parent 0cd4002 commit 9e91272
Showing 1 changed file with 30 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/*
* Copyright (c) 2018 LingoChamp 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.liulishuo.okdownload.core.exception;

import org.junit.Test;

import static org.assertj.core.api.Java6Assertions.assertThat;

public class SQLiteExceptionTest {

@Test
public void constructor() {
final SQLiteException exception = new SQLiteException("message");
assertThat(exception.getMessage()).isEqualTo("message");
}
}

0 comments on commit 9e91272

Please sign in to comment.