blob: a34c0e7f7dc448789301ed16384ba32080ec33cb [file] [log] [blame]
/*
* Copyright 2000-2013 JetBrains s.r.o.
*
* 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.
*/
/*
* Created by IntelliJ IDEA.
* User: Anna.Kozlova
* Date: 20-Jul-2006
* Time: 18:26:01
*/
package com.intellij.ide.severities;
import com.intellij.lang.annotation.HighlightSeverity;
import junit.framework.TestCase;
import org.jdom.Element;
public class HighlightSeveritiesTest extends TestCase {
public void testSeveritiesMigration() throws Exception{
final Element element = new Element("temp");
new HighlightSeverity(HighlightSeverity.ERROR.myName, 500).writeExternal(element);
HighlightSeverity newSeverity = new HighlightSeverity(element);
assertEquals(500, newSeverity.myVal);
}
}