Skip to content
This repository has been archived by the owner on Jul 20, 2020. It is now read-only.

Commit

Permalink
#12 - provide basic test for generating ComponentModel
Browse files Browse the repository at this point in the history
Signed-off-by: Aurélien Pupier <apupier@redhat.com>
  • Loading branch information
apupier committed May 16, 2018
1 parent 990e1c0 commit df8d76b
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You 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.github.cameltooling.model.util;

import org.apache.camel.catalog.DefaultCamelCatalog;
import org.junit.Test;

public class ModelHelperTest {

@Test
public void testGenerateComponentModelForTimerWithoutError() throws Exception {
ModelHelper.generateComponentModel(new DefaultCamelCatalog().componentJSonSchema("timer"), true);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public void wrapLongWordsContainingSpaces() {
}

@Test
public void wrapNothin() {
public void wrapNothing() {
assertNull(StringUtils.wrapWords(null, "\n", 80, true));
}

Expand Down

0 comments on commit df8d76b

Please sign in to comment.