Merge "Add unit test for EditDeserializer"

This commit is contained in:
Shawn Pearce
2013-11-05 22:21:54 +00:00
committed by Gerrit Code Review
3 changed files with 38 additions and 0 deletions

View File

@@ -30,3 +30,15 @@ java_library(
],
visibility = ['PUBLIC'],
)
java_test(
name = 'jgit_patch_tests',
srcs = glob(['src/test/java/**/*.java']),
deps = [
':server',
'//lib/jgit:jgit',
'//lib:junit',
],
source_under_test = [':server'],
visibility = ['//tools/eclipse:classpath'],
)

View File

@@ -0,0 +1,25 @@
// Copyright (C) 2013 The Android Open Source Project
//
// 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 org.eclipse.jgit.diff;
import junit.framework.TestCase;
import org.eclipse.jgit.diff.EditDeserializer;
public class EditDeserializerTest extends TestCase {
public void testDiffDeserializer() {
assertNotNull("edit deserializer", new EditDeserializer());
}
}

View File

@@ -9,6 +9,7 @@ java_library(
'//gerrit-gwtui:ui_tests',
'//gerrit-httpd:httpd_tests',
'//gerrit-main:main_lib',
'//gerrit-patch-jgit:jgit_patch_tests',
'//gerrit-server:server__compile',
'//lib/asciidoctor:asciidoc_lib',
'//lib/asciidoctor:doc_indexer_lib',