<commit_before>package com.fasterxml.jackson.databind.creators;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.*;

public class TestCreators3 extends BaseMapTest
{
    static class MultiCtor
    {
        protected String _a, _b;
        
        @JsonCreator
        MultiCtor(@JsonProperty("a") String a, @JsonProperty("b") String b) {
            _a = a;
            _b = b;
        }

        MultiCtor(String a, String b, Object c) {
            throw new RuntimeException("Wrong factory!");
        }
        
    }
    
    /*
    /**********************************************************
    /* Test methods
    /**********************************************************
     */

    private final ObjectMapper MAPPER = new ObjectMapper();

    // [Issue#421]
    public void testMultiCtor421() throws Exception<commit_msg>Try to improve test for #421<commit_after>package com.fasterxml.jackson.databind.creators;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.*;

public class TestCreators3 extends BaseMapTest
{
    static class MultiCtor
    {
        protected String _a, _b;
        
        @JsonCreator
        static MultiCtor factory(@JsonProperty("a") String a, @JsonProperty("b") String b) {
            return new MultiCtor(a, b, Boolean.TRUE);
        }

        private MultiCtor() { }

        private MultiCtor(String a, String b, Object c) {
            if (c == null) {
                throw new RuntimeException("Wrong factory!");
            }
            _a = a;
            _b = b;
        }
        
    }
    
    /*
    /**********************************************************
    /* Test methods
    /**********************************************************
     */

    private final ObjectMapper MAPPER = new ObjectMapper();

    // [Issue#421]
    public void testMultiCtor421() throws Exception
{'fraction_non_alphanumeric': 0.20068694798822376, 'fraction_numerical': 0.008341511285574092, 'mean_word_length': 2.552264808362369, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 8}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '831267', 'n_tokens_mistral': 577, 'n_tokens_neox': 514, 'n_words': 127}