input stringlengths 28 18.7k | output stringlengths 39 1.69k |
|---|---|
testGetSize ( ) { com . eclipsesource . jaxrs . provider . gson . GsonProvider < com . eclipsesource . jaxrs . provider . gson . GsonProviderTest . TestObject > testObjectProvider = new com . eclipsesource . jaxrs . provider . gson . GsonProvider < com . eclipsesource . jaxrs . provider . gson . GsonProviderTest . Test... | org . junit . Assert . assertEquals ( ( - 1 ) , size ) |
jaxbXmlWithNull ( ) { org . ebayopensource . turmeric . runtime . tests . service1 . sample . types1 . MyMessage msg = null ; org . ebayopensource . turmeric . runtime . common . binding . DataBindingDesc xmlDbDesc = new org . ebayopensource . turmeric . runtime . common . binding . DataBindingDesc ( org . ebayopensour... | org . junit . Assert . assertEquals ( null , msg1 ) |
logsExecutionFailAndReturnsFalse ( ) { given ( script . getContent ( ) ) . willReturn ( org . jenkinsci . plugins . postbuildscript . service . GroovyScriptPreparerTest . SCRIPT_CONTENT ) ; given ( executorFactory . create ( script , java . util . Collections . emptyList ( ) ) ) . willReturn ( executor ) ; java . lang ... | org . junit . Assert . assertThat ( evaluated , org . hamcrest . CoreMatchers . is ( false ) ) |
deveGerarXMLDeAcordoComOPadraoEstabelecido ( ) { final com . fincatto . documentofiscal . nfe400 . classes . nota . NFNotaInfoItemImpostoICMS30 icms30 = new com . fincatto . documentofiscal . nfe400 . classes . nota . NFNotaInfoItemImpostoICMS30 ( ) ; icms30 . setModalidadeBCICMSST ( NFNotaInfoItemModalidadeBCICMSST . ... | org . junit . Assert . assertEquals ( xmlEsperado , icms30 . toString ( ) ) |
testCleanupContinuesDespiteThrowing ( ) { final java . util . concurrent . atomic . AtomicInteger freeCalledCount = new java . util . concurrent . atomic . AtomicInteger ( ) ; final java . util . concurrent . CountDownLatch latch = new java . util . concurrent . CountDownLatch ( 1 ) ; temporaryThread = new java . lang ... | org . junit . Assert . assertEquals ( 0 , freeCalledCount . get ( ) ) |
testSelection_AddAtIndexBeforeSelection ( ) { combo . add ( "test0" ) ; combo . add ( "test1" ) ; combo . add ( "test2" ) ; combo . select ( 2 ) ; combo . add ( "foo" , 1 ) ; "<AssertPlaceHolder>" ; } getSelectionIndex ( ) { checkWidget ( ) ; int result = - 1 ; if ( cellSelectionEnabled ) { if ( ( selectedCells . size ... | org . junit . Assert . assertEquals ( 3 , combo . getSelectionIndex ( ) ) |
testParseLine_Docker_Ubuntu ( ) { java . lang . String line = "speed<sp>38400<sp>baud;<sp>rows<sp>0;<sp>columns<sp>0;<sp>line<sp>=<sp>0;" ; "<AssertPlaceHolder>" ; } parseLine ( java . lang . String ) { return parseLine ( line , io . bootique . terminal . SttyTerminal . COLUMNS_PATTERN_LINUX , io . bootique . terminal ... | org . junit . Assert . assertEquals ( new java . lang . Integer ( 0 ) , terminal . parseLine ( line ) ) |
testMessage ( ) { com . savoirtech . logging . slf4j . json . logger . JsonLogger result = this . logger . message ( "x-message-x" ) ; "<AssertPlaceHolder>" ; } message ( java . util . function . Supplier ) { try { jsonObject . add ( "message" , gson . toJsonTree ( message . get ( ) ) ) ; } catch ( java . lang . Except... | org . junit . Assert . assertSame ( result , this . logger ) |
wrapTextShouldReturnTrue ( ) { console . changeWrapTextParam ( ) ; "<AssertPlaceHolder>" ; } isWrapText ( ) { return isWrappedText ; } | org . junit . Assert . assertThat ( console . isWrapText ( ) , org . hamcrest . CoreMatchers . is ( true ) ) |
testGetValueWithWholeDocument ( ) { javax . json . JsonStructure jsonDocument = getJsonDocument ( ) ; org . apache . johnzon . core . JsonPointerImpl jsonPointer = new org . apache . johnzon . core . JsonPointerImpl ( javax . json . spi . JsonProvider . provider ( ) , "" ) ; javax . json . JsonValue result = jsonPointe... | org . junit . Assert . assertEquals ( jsonDocument . toString ( ) , result . toString ( ) ) |
testIteratorOnEmptyCacheCallHasNext ( ) { org . cache2k . Cache < java . lang . Integer , java . lang . Integer > c = freshCache ( org . cache2k . test . core . Integer . class , org . cache2k . test . core . Integer . class , null , 100 , ( - 1 ) ) ; "<AssertPlaceHolder>" ; } entries ( ) { throw new java . lang . Unsu... | org . junit . Assert . assertFalse ( c . entries ( ) . iterator ( ) . hasNext ( ) ) |
testVariableLength ( ) { org . apache . tajo . catalog . SchemaBuilder schemaBld = org . apache . tajo . catalog . SchemaBuilder . builder ( ) . add ( "col1" , Type . TEXT ) ; org . apache . tajo . catalog . Schema schema = schemaBld . build ( ) ; org . apache . tajo . catalog . TableMeta meta = org . apache . tajo . c... | org . junit . Assert . assertEquals ( ( ( idx % 2 ) == 0 ? testStr + idx : testStr2 ) , retrieved . asDatum ( 0 ) . toString ( ) ) |
convertEmptyJsonStringToMapObject ( ) { com . google . gson . JsonObject jsonMap = new io . searchbox . action . AbstractActionTest . DummyAction . Builder ( ) . build ( ) . parseResponseBody ( "" ) ; "<AssertPlaceHolder>" ; } parseResponseBody ( java . lang . String ) { return new com . google . gson . JsonObject ( ) ... | org . junit . Assert . assertNotNull ( jsonMap ) |
vcal_timezone_standard_and_two_daylights ( ) { biweekly . ICalendar ical = new biweekly . ICalendar ( ) ; ical . getProperties ( ) . clear ( ) ; ical . addProperty ( new biweekly . property . DateStart ( utc ( "2014-01-07<sp>09:34:00" ) ) ) ; ical . addProperty ( new biweekly . property . DateStart ( utc ( "2014-10-07<... | org . junit . Assert . assertEquals ( expected , actual ) |
testGetErrorCode_unknownErrorCode ( ) { com . google . api . client . http . HttpResponseException httpResponseException = new com . google . api . client . http . HttpResponseException . Builder ( org . apache . http . HttpStatus . SC_BAD_REQUEST , "Bad<sp>Request" , new com . google . api . client . http . HttpHeader... | org . junit . Assert . assertSame ( httpResponseException , ex ) |
testNonPooledBuffer ( ) { try { com . ibm . wsspi . bytebuffer . WsByteBuffer buffer = com . ibm . wsspi . channelfw . ChannelFrameworkFactory . getBufferManager ( ) . wrap ( new byte [ 8192 ] ) ; "<AssertPlaceHolder>" ; runTests ( buffer , false , 8192 ) ; } catch ( java . lang . Throwable t ) { com . ibm . ws . byteb... | org . junit . Assert . assertEquals ( WsByteBuffer . TYPE_WsByteBuffer , buffer . getType ( ) ) |
shouldMapEmptyString ( ) { com . github . dozermapper . core . Mapper beanMapper = com . github . dozermapper . core . DozerBeanMapperBuilder . create ( ) . withMappingBuilder ( new com . github . dozermapper . core . loader . api . BeanMappingBuilder ( ) { @ com . github . dozermapper . core . functional_tests . build... | org . junit . Assert . assertThat ( destination . getB ( ) , org . hamcrest . CoreMatchers . equalTo ( "" ) ) |
testEatAll ( ) { pm . consumePointsOnBoard ( player , totalPoints ) ; "<AssertPlaceHolder>" ; } allEaten ( ) { assert invariant ( ) ; return ( pointsEarned ) == ( pointsPutOnBoard ) ; } | org . junit . Assert . assertTrue ( pm . allEaten ( ) ) |
testInvalidJsonInsert ( ) { com . oberasoftware . jasdb . test . DBSession session = sessionFactory . createSession ( ) ; com . oberasoftware . jasdb . test . EntityBag bag = session . createOrGetBag ( "MySpecialBag" ) ; com . oberasoftware . jasdb . core . SimpleEntity entity = new com . oberasoftware . jasdb . core .... | org . junit . Assert . assertThat ( result . size ( ) , org . hamcrest . core . Is . is ( 1L ) ) |
testGetTask_HMSBootUp_TaskResponse ( ) { com . vmware . vrack . hms . task . TaskFactoryTest . logger . info ( "[TS]<sp>:<sp>testGetTask_HMSBootUp_TaskResponse" ) ; com . vmware . vrack . hms . task . TaskType taskType = TaskType . HMSBootUp ; com . vmware . vrack . hms . common . notification . TaskResponse TR = new c... | org . junit . Assert . assertNotNull ( result ) |
all ( ) { com . github . mauricioaniche . ck . CKClassResult a = com . github . mauricioaniche . ck . metric . MethodsTest . report . get ( "methods.Methods" ) ; "<AssertPlaceHolder>" ; } getNumberOfMethods ( ) { return numberOfMethods ; } | org . junit . Assert . assertEquals ( 5 , a . getNumberOfMethods ( ) ) |
testbuildBarDataSizeString_Days ( ) { "<AssertPlaceHolder>" ; try { com . sumzerotrading . ib . historical . HistoricalDataUtils . buildBarDataSizeString ( 2 , LengthUnit . DAY ) ; org . junit . Assert . fail ( ) ; } catch ( com . sumzerotrading . ib . historical . InvalidBarSizeException ex ) { } } buildBarDataSizeStr... | org . junit . Assert . assertEquals ( "1<sp>day" , com . sumzerotrading . ib . historical . HistoricalDataUtils . buildBarDataSizeString ( 1 , LengthUnit . DAY ) ) |
testEqualsObjectFalseSuper ( ) { org . o3project . odenos . core . component . network . flow . ofpflow . OFPFlow obj = new org . o3project . odenos . core . component . network . flow . ofpflow . OFPFlow ( ) ; doReturn ( "type" ) . when ( target ) . getType ( ) ; boolean result = target . equals ( obj ) ; "<AssertPlac... | org . junit . Assert . assertThat ( result , org . hamcrest . CoreMatchers . is ( false ) ) |
testFreeFlowing ( ) { org . locationtech . jts . geom . Coordinate a = new org . locationtech . jts . geom . Coordinate ( ( - 73.990989 ) , 40.750167 ) ; org . locationtech . jts . geom . Coordinate b = new org . locationtech . jts . geom . Coordinate ( ( - 73.988049 ) , 40.749094 ) ; org . locationtech . jts . geom . ... | org . junit . Assert . assertEquals ( 0.0 , traversalCost , 0.0 ) |
adding_a_CharSequence_should_add_the_length_and_if_it_is_empty ( ) { java . lang . String name = "string" ; java . lang . String value = "Take<sp>nothing<sp>on<sp>its<sp>looks;<sp>take<sp>everything<sp>on<sp>evidence.<sp>There's<sp>no<sp>better<sp>rule." ; fr . inria . lille . commons . trace . RuntimeValues < ? > runt... | org . junit . Assert . assertEquals ( expected , runtimeValues . valueBuffer ( ) ) |
testGetUiHeaderRowIndexHeaderMaxY ( ) { point = new com . ait . lienzo . client . core . types . Point2D ( ( ( org . uberfire . ext . wires . core . grids . client . util . CoordinateUtilitiesTest . COLUMN_WIDTH ) / 2 ) , ( ( gridRenderer . getHeaderHeight ( ) ) + 5.0 ) ) ; setupGridWidget ( ) ; final org . uberfire . ... | org . junit . Assert . assertNull ( uiHeaderRowIndex ) |
getNameThirdCategoryShow_NameNull ( ) { givenModel ( newCategories ( true , "red" , "blue" , "green" ) , noEntries ( ) ) ; java . lang . String result = ctrl . getNameThirdCategoryShow ( ) ; "<AssertPlaceHolder>" ; } getNameThirdCategoryShow ( ) { if ( isNameThirdCategoryShowNull ( ) ) { return model . getIdThirdCatego... | org . junit . Assert . assertEquals ( "green" , result ) |
testCompleteTaskWithParametersEmptyParameters ( ) { org . camunda . bpm . engine . task . Task task = taskService . newTask ( ) ; taskService . saveTask ( task ) ; java . lang . String taskId = task . getId ( ) ; taskService . complete ( taskId , Collections . EMPTY_MAP ) ; if ( ( processEngineConfiguration . getHistor... | org . junit . Assert . assertNull ( task ) |
testGetAllMessagesReturnsInsightsAndConversations ( ) { long messageSendTime = java . lang . System . currentTimeMillis ( ) ; testService . createSampleRssFeedPrivateConnectionAndRefresh ( testUser ) ; sendInsightMessage ( messageSendTime ) ; sendUserMessage ( messageSendTime ) ; java . util . List < com . streamreduce... | org . junit . Assert . assertEquals ( 2 , messages . size ( ) ) |
shouldGetAttribute ( ) { final ro . isdc . wro . http . support . ServletContextAttributeHelper . Attribute attr = ro . isdc . wro . http . support . ServletContextAttributeHelper . Attribute . CONFIGURATION ; final ro . isdc . wro . config . jmx . WroConfiguration value = new ro . isdc . wro . config . jmx . WroConfig... | org . junit . Assert . assertSame ( value , victim . getAttribute ( attr ) ) |
testTryLoadNotExistingKjarFromClasspath ( ) { java . lang . ClassLoader cl = java . lang . Thread . currentThread ( ) . getContextClassLoader ( ) ; java . net . URLClassLoader urlClassLoader = new java . net . URLClassLoader ( new java . net . URL [ ] { this . getClass ( ) . getResource ( "/kie-project-simple-1.0.0.jar... | org . junit . Assert . assertNull ( kieModule ) |
setPositiveMaxNumberOfIterations ( ) { builder . setMaxEvaluations ( 20000 ) ; "<AssertPlaceHolder>" ; } getMaxIterations ( ) { return maxIterations ; } | org . junit . Assert . assertEquals ( 20000 , builder . getMaxIterations ( ) ) |
testWordsInRegExPartOfSpeechRelationExtraction ( ) { jCas . setDocumentText ( uk . gov . dstl . baleen . annotators . relations . PartOfSpeechRelationshipTest . SENTENCE ) ; uk . gov . dstl . baleen . annotators . testing . Annotations . createPerson ( jCas , 0 , 3 , "Ben" ) ; uk . gov . dstl . baleen . annotators . te... | org . junit . Assert . assertEquals ( 1 , relations . size ( ) ) |
testHasDuplicateHistoryNoDuplicates ( ) { hudson . XmlFile xmlFile = new hudson . XmlFile ( new java . io . File ( test1History , "2012-11-21_11-41-14/history.xml" ) ) ; final java . io . File configFile = new java . io . File ( test1JobDirectory , "config.xml" ) ; hudson . util . IOUtils . write ( xmlFile . asString (... | org . junit . Assert . assertEquals ( false , result ) |
testWithCustomPicoContainer ( ) { java . lang . Object actual = new com . picocontainer . PicoBuilder ( ) . implementedBy ( com . picocontainer . PicoBuilderTestCase . TestPicoContainer . class ) . build ( ) ; java . lang . Object expected = new com . picocontainer . PicoBuilderTestCase . TestPicoContainer ( ai , ncm ,... | org . junit . Assert . assertEquals ( toXml ( expected ) , toXml ( actual ) ) |
testSyncWithCurrent ( ) { final org . apache . hadoop . tools . DistCpOptions options = new org . apache . hadoop . tools . DistCpOptions . Builder ( java . util . Collections . singletonList ( source ) , target ) . withSyncFolder ( true ) . withUseDiff ( "s1" , "." ) . build ( ) ; context = new org . apache . hadoop .... | org . junit . Assert . assertEquals ( source , context . getSourcePaths ( ) . get ( 0 ) ) |
insertVisit ( ) { org . springframework . samples . petclinic . Pet p7 = this . clinic . loadPet ( 7 ) ; int found = p7 . getVisits ( ) . size ( ) ; org . springframework . samples . petclinic . Visit visit = new org . springframework . samples . petclinic . Visit ( ) ; p7 . addVisit ( visit ) ; visit . setDescription ... | org . junit . Assert . assertEquals ( ( found + 1 ) , p7 . getVisits ( ) . size ( ) ) |
testHandleToString ( ) { org . zoodb . schema . ZooClass c1 = org . zoodb . jdo . ZooJdoHelper . schema ( pm ) . getClass ( org . zoodb . test . jdo . TestClassTiny . class ) ; org . zoodb . schema . ZooHandle hdl1 = c1 . newInstance ( ) ; java . lang . String oStr = org . zoodb . internal . util . Util . oidToString (... | org . junit . Assert . assertEquals ( oStr , hdl1 . toString ( ) ) |
testDefaultPopulateDisplayDataImplementation ( ) { org . apache . beam . sdk . transforms . DoFn < java . lang . String , java . lang . String > fn = new org . apache . beam . sdk . transforms . DoFn < java . lang . String , java . lang . String > ( ) { } ; org . apache . beam . sdk . transforms . display . DisplayData... | org . junit . Assert . assertThat ( displayData . items ( ) , org . hamcrest . Matchers . empty ( ) ) |
entitySuccess ( ) { in . cubestack . android . lib . storm . core . TableInformation info = dataReader . readAnnotations ( in . cubestack . apps . android . storm . entitites . TestEntity . class , new in . cubestack . android . lib . storm . core . AliasGenerator ( ) ) ; "<AssertPlaceHolder>" ; } readAnnotations ( jav... | org . junit . Assert . assertNotNull ( info ) |
bindOK ( ) { com . cloudhopper . smpp . SmppSessionConfiguration configuration = createDefaultConfiguration ( ) ; registerServerBindProcessor ( ) ; com . cloudhopper . smpp . impl . DefaultSmppSession session = ( ( com . cloudhopper . smpp . impl . DefaultSmppSession ) ( com . cloudhopper . smpp . impl . DefaultSmppSes... | org . junit . Assert . assertEquals ( true , session . isBound ( ) ) |
testSerialization ( ) { org . jfree . chart . needle . ShipNeedle n1 = new org . jfree . chart . needle . ShipNeedle ( ) ; org . jfree . chart . needle . ShipNeedle n2 = ( ( org . jfree . chart . needle . ShipNeedle ) ( org . jfree . chart . TestUtilities . serialised ( n1 ) ) ) ; "<AssertPlaceHolder>" ; } equals ( jav... | org . junit . Assert . assertTrue ( n1 . equals ( n2 ) ) |
testIndexReduce1 ( ) { org . nd4j . linalg . api . ndarray . INDArray array1 = org . nd4j . linalg . factory . Nd4j . create ( new float [ ] { 0.0F , 0.0F , 0.0F , 2.0F , 2.0F , 0.0F } ) ; int idx = ( ( org . nd4j . linalg . api . ops . IndexAccumulation ) ( org . nd4j . linalg . factory . Nd4j . getExecutioner ( ) . e... | org . junit . Assert . assertEquals ( 3 , idx ) |
testValidStream ( ) { java . net . URL url = new java . net . URL ( "http://www.sejda.org" ) ; org . sejda . model . input . PdfURLSource instance = org . sejda . model . input . PdfURLSource . newInstanceWithPassword ( url , "dsadsada" , "dsdasdsa" ) ; "<AssertPlaceHolder>" ; } newInstanceWithPassword ( java . net . U... | org . junit . Assert . assertNotNull ( instance ) |
testJsonConversionOfIgnoredProperty ( ) { org . apache . beam . sdk . options . ProxyInvocationHandlerTest . IgnoredProperty options = org . apache . beam . sdk . options . PipelineOptionsFactory . as ( org . apache . beam . sdk . options . ProxyInvocationHandlerTest . IgnoredProperty . class ) ; options . setValue ( "... | org . junit . Assert . assertNull ( options2 . getValue ( ) ) |
givenClassToInstanceMap_whenPutCalled_returnPreviousElementUpperBound ( ) { com . google . common . collect . ClassToInstanceMap < org . baeldung . guava . Action > map = com . google . common . collect . MutableClassToInstanceMap . create ( ) ; map . put ( org . baeldung . guava . Save . class , new org . baeldung . g... | org . junit . Assert . assertTrue ( ( action instanceof org . baeldung . guava . Save ) ) |
testStripTime ( ) { java . util . Date datetime = org . hibersap . util . DateUtil . newDate ( 2008 , Calendar . JULY , 3 , 22 , 56 , 32 ) ; java . util . Date expected = org . hibersap . util . DateUtil . newDate ( 2008 , Calendar . JULY , 3 ) ; java . util . Date stripped = org . hibersap . util . DateUtil . stripTim... | org . junit . Assert . assertEquals ( expected , stripped ) |
http_url_does_not_exist ( ) { stubFor ( get ( urlEqualTo ( "/does-not-exist.txt" ) ) . willReturn ( aResponse ( ) . withStatus ( 404 ) ) ) ; java . lang . String url = ( "http://127.0.0.1:" + ( wireMockRule . port ( ) ) ) + "/does-not-exist.txt" ; org . jmxtrans . agent . util . io . UrlResource res = new org . jmxtran... | org . junit . Assert . assertThat ( res . exists ( ) , is ( false ) ) |
listAllTest ( ) { java . util . List < com . demo . model . Team > teams = teamService . getTeams ( ) ; "<AssertPlaceHolder>" ; } size ( ) { int size = 0 ; for ( com . github . drinkjava2 . jdialects . springsrc . utils . ConcurrentReferenceHashMap < K , V > . Segment segment : this . segments ) { size += segment . get... | org . junit . Assert . assertEquals ( 5 , teams . size ( ) ) |
testParseEncoding_ISO8859_1_encoding ( ) { java . nio . charset . Charset result = org . eclipse . jgit . util . RawParseUtils . parseEncoding ( org . eclipse . jgit . lib . Constants . encodeASCII ( "encoding<sp>ISO-8859-1\n" ) ) ; "<AssertPlaceHolder>" ; } encodeASCII ( long ) { return org . eclipse . jgit . lib . Co... | org . junit . Assert . assertNotNull ( result ) |
testBuildWithTwoOrConditions ( ) { java . lang . String query = "SELECT<sp>FROM<sp>SMTH<sp>%s" ; java . lang . String condition = "condition<sp>" ; java . lang . Object parameter = new java . lang . Object ( ) ; java . lang . String condition1 = "condition1<sp>" ; java . lang . Object nullParameter = null ; java . lang... | org . junit . Assert . assertEquals ( expected , actual ) |
testToString ( ) { java . lang . String string1 = model . toString ( ) ; java . lang . String string2 = "{id:<sp>1234,<sp>name:<sp>\"TestModel\",<sp>}" ; "<AssertPlaceHolder>" ; } toString ( ) { return this . toJSON ( ) ; } | org . junit . Assert . assertEquals ( string2 , string1 ) |
validateSucceedsIfUriIsValid ( ) { org . graylog2 . configuration . MongoDbConfiguration configuration = new org . graylog2 . configuration . MongoDbConfiguration ( ) ; final java . util . Map < java . lang . String , java . lang . String > properties = singletonMap ( "mongodb_uri" , "mongodb://example.com:1234,127.0.0... | org . junit . Assert . assertEquals ( "mongodb://example.com:1234,127.0.0.1:5678/TEST" , configuration . getMongoClientURI ( ) . toString ( ) ) |
testConstructorMetEnkelPersoon ( ) { nl . bzk . brp . domein . kern . Persoon persoon = factory . createPersoon ( ) ; persoon . setSoort ( SoortPersoon . INGESCHREVENE ) ; nl . bzk . brp . bevraging . business . dto . antwoord . PersoonZoekCriteriaAntwoord antwoord = new nl . bzk . brp . bevraging . business . dto . an... | org . junit . Assert . assertEquals ( 1 , antwoord . getPersonen ( ) . size ( ) ) |
testWildcardTypeUpperBoundObject ( ) { javax . ws . rs . core . GenericType < java . util . List < ? extends java . lang . Object > > genericType = new javax . ws . rs . core . GenericType < java . util . List < ? extends java . lang . Object > > ( ) { } ; java . lang . reflect . ParameterizedType pt = ( ( java . lang ... | org . junit . Assert . assertEquals ( java . lang . Object . class , rawType ) |
beforetest ( ) { com . jfireframework . context . JfireContext jfireContext = new com . jfireframework . context . JfireContextImpl ( "com.jfireframework.context.test.function.aop" ) ; com . jfireframework . context . test . function . aop . Person person = jfireContext . getBean ( com . jfireframework . context . test... | org . junit . Assert . assertEquals ( "" , person . sayHello ( "" ) ) |
testLoading ( ) { org . apache . hadoop . hbase . replication . TestReplicationSmallTests . LOG . info ( "Writing<sp>out<sp>rows<sp>to<sp>table1<sp>in<sp>testLoading" ) ; java . util . List < org . apache . hadoop . hbase . client . Put > puts = new java . util . ArrayList ( NB_ROWS_IN_BIG_BATCH ) ; for ( int i = 0 ; i... | org . junit . Assert . assertEquals ( org . apache . hadoop . hbase . replication . NB_ROWS_IN_BIG_BATCH , res . length ) |
testArg ( ) { java . lang . String templates = "foo(a,)<sp>::=<sp><<<sp>>>\n" ; writeFile ( tmpdir , "t.stg" , templates ) ; org . stringtemplate . v4 . STGroupFile group ; org . stringtemplate . v4 . STErrorListener errors = new org . stringtemplate . v4 . misc . ErrorBuffer ( ) ; group = new org . stringtemplate . v4... | org . junit . Assert . assertEquals ( expected , result ) |
testParent ( ) { final org . kie . workbench . common . dmn . api . definition . v1_1 . DMNModelInstrumentedBaseTest . MockDMNModelClass parent = new org . kie . workbench . common . dmn . api . definition . v1_1 . DMNModelInstrumentedBaseTest . MockDMNModelClass ( ) ; final org . kie . workbench . common . dmn . api .... | org . junit . Assert . assertEquals ( parent , child . getParent ( ) ) |
testNoNullKeysMixedParameter ( ) { try { com . twelvemonkeys . lang . Validate . noNullKeys ( new com . twelvemonkeys . lang . HashMap < java . lang . String , java . lang . Object > ( ) { { put ( "foo" , 1 ) ; put ( null , null ) ; put ( "bar" , null ) ; } } , "foo" ) ; } catch ( java . lang . IllegalArgumentException... | org . junit . Assert . assertTrue ( e . getMessage ( ) . contains ( "foo" ) ) |
test_addMouseMoveListenerLorg_eclipse_swt_events_MouseMoveListener ( ) { org . eclipse . swt . events . MouseMoveListener listener = ( e ) -> eventOccurred = true ; control . addMouseMoveListener ( listener ) ; eventOccurred = false ; control . notifyListeners ( SWT . MouseMove , new org . eclipse . swt . widgets . Eve... | org . junit . Assert . assertTrue ( eventOccurred ) |
makeUnionTest ( ) { int n = 2 ; org . openscience . cdk . group . DisjointSetForest forest = new org . openscience . cdk . group . DisjointSetForest ( n ) ; forest . makeUnion ( 0 , 1 ) ; "<AssertPlaceHolder>" ; } get ( org . openscience . cdk . interfaces . IAtom ) { if ( atom instanceof org . openscience . cdk . phar... | org . junit . Assert . assertEquals ( 0 , forest . get ( 1 ) ) |
testQueryTwoRangeOverlapExpected ( ) { org . calrissian . accumulorecipes . rangestore . impl . AccumuloRangeStore < java . lang . Long > rangeStore = new org . calrissian . accumulorecipes . rangestore . impl . AccumuloRangeStore < java . lang . Long > ( org . calrissian . accumulorecipes . rangestore . impl . Accumul... | org . junit . Assert . assertEquals ( 2 , results . size ( ) ) |
testServiceAccountCryptoSigner ( ) { com . google . auth . oauth2 . ServiceAccountCredentials credentials = com . google . auth . oauth2 . ServiceAccountCredentials . fromStream ( ServiceAccount . EDITOR . asStream ( ) ) ; byte [ ] expected = credentials . sign ( "foo" . getBytes ( ) ) ; com . google . firebase . auth ... | org . junit . Assert . assertArrayEquals ( expected , data ) |
testDeleteGlobalOperation_False ( ) { org . easymock . EasyMock . expect ( computeRpcMock . deleteGlobalOperation ( com . google . cloud . compute . deprecated . ComputeImplTest . GLOBAL_OPERATION_ID . getOperation ( ) ) ) . andReturn ( false ) ; org . easymock . EasyMock . replay ( computeRpcMock ) ; compute = options... | org . junit . Assert . assertFalse ( compute . deleteOperation ( com . google . cloud . compute . deprecated . ComputeImplTest . GLOBAL_OPERATION_ID ) ) |
endIsInclusiveButExcludesChildren ( ) { com . google . firebase . database . snapshot . Node node = NodeFromJSON ( com . google . firebase . database . TestHelpers . fromSingleQuotedString ( ( "{'bar':<sp>'bar-value',<sp>'foo':<sp>{'foo-child':<sp>'foo-child-value'},<sp>'quu':<sp>" + "'quu-value'}" ) ) ) ; com . google... | org . junit . Assert . assertEquals ( expected , actual ) |
testCastLongToShort ( ) { int expected = org . stjs . generator . exec . ints . LongToShort . method ( LongToShort . BIG_LONG ) ; double expectedDouble = ( ( double ) ( expected ) ) ; "<AssertPlaceHolder>" ; } executeAndReturnNumber ( java . lang . Class ) { return executeAndReturnNumber ( clazz , null ) ; } | org . junit . Assert . assertEquals ( expectedDouble , executeAndReturnNumber ( org . stjs . generator . exec . ints . LongToShort . class ) , 0 ) |
testHlist ( ) { ssdbClient . hset ( "h1" , "name" , "name_of_h1" ) ; ssdbClient . hset ( "h2" , "name" , "name_of_h2" ) ; java . util . List < java . lang . String > keys = ssdbClient . hlist ( "h0" , "h9" , ( - 1 ) ) ; "<AssertPlaceHolder>" ; } hlist ( java . lang . String , java . lang . String , int ) { return combi... | org . junit . Assert . assertEquals ( java . util . Arrays . asList ( "h1" , "h2" ) , keys ) |
literal ( ) { java . lang . String input = "abv" ; ch . qos . logback . core . subst . Node node = makeNode ( input ) ; ch . qos . logback . core . subst . NodeToStringTransformer nodeToStringTransformer = new ch . qos . logback . core . subst . NodeToStringTransformer ( node , propertyContainer0 ) ; "<AssertPlaceHolde... | org . junit . Assert . assertEquals ( input , nodeToStringTransformer . transform ( ) ) |
unvoidEncounter_shouldFailfIfUserIsNotSupposedToEditEncountersOfTypeOfGivenEncounter ( ) { org . openmrs . Encounter encounter = getEncounterWithEditPrivilege ( ) ; org . openmrs . User user = org . openmrs . api . context . Context . getUserService ( ) . getUserByUsername ( "test_user" ) ; "<AssertPlaceHolder>" ; org ... | org . junit . Assert . assertNotNull ( user ) |
testGetLastCompletedDAG ( ) { java . util . Map < org . apache . tez . dag . records . TezDAGID , org . apache . tez . dag . app . RecoveryParser . DAGSummaryData > summaryDataMap = new java . util . HashMap < org . apache . tez . dag . records . TezDAGID , org . apache . tez . dag . app . RecoveryParser . DAGSummaryDa... | org . junit . Assert . assertEquals ( lastCompletedDAGId , lastCompletedDAG . dagId . getId ( ) ) |
whenValidationWithInvalidConstructorReturnValue_thenCorrectNumberOfVoilations ( ) { java . lang . reflect . Constructor < org . baeldung . javaxval . methodvalidation . model . Reservation > constructor = org . baeldung . javaxval . methodvalidation . model . Reservation . class . getConstructor ( java . time . LocalDa... | org . junit . Assert . assertEquals ( 1 , violations . size ( ) ) |
testParse_GermanLocaleZero ( ) { org . oscm . converter . PriceConverter converter = new org . oscm . converter . PriceConverter ( java . util . Locale . GERMAN ) ; "<AssertPlaceHolder>" ; checkEquals ( "0.00" , converter . parse ( "0,00" ) ) ; } getActiveLocale ( ) { return activeLocale ; } | org . junit . Assert . assertEquals ( Locale . GERMAN , converter . getActiveLocale ( ) ) |
serialize ( ) { "<AssertPlaceHolder>" ; } serialize ( ) { org . junit . Assert . assertArrayEquals ( data , org . onlab . packet . lacp . LacpTerminatorTlvTest . TERMINATOR_TLV . serialize ( ) ) ; } | org . junit . Assert . assertArrayEquals ( data , org . onlab . packet . lacp . LacpTerminatorTlvTest . TERMINATOR_TLV . serialize ( ) ) |
testDescriptionSubstringFilter ( ) { org . opennms . web . alarm . filter . AlarmCriteria criteria = getCriteria ( new org . opennms . web . alarm . filter . DescriptionSubstringFilter ( "alarm" ) ) ; org . opennms . netmgt . model . OnmsAlarm [ ] alarms = m_daoAlarmRepo . getMatchingAlarms ( org . opennms . web . alar... | org . junit . Assert . assertEquals ( 1 , alarms . length ) |
testInsertNewOrderWithIndex ( ) { com . splicemachine . derby . impl . sql . actions . index . SpliceIndexWatcher . createIndex ( conn , com . splicemachine . derby . impl . sql . actions . index . IndexIT . SCHEMA_NAME , NewOrderTable . TABLE_NAME , NewOrderTable . INDEX_NAME , NewOrderTable . INDEX_ORDER_DEF , false ... | org . junit . Assert . assertEquals ( 1 , nCols ) |
testConditionVisit ( ) { org . ocpsoft . rewrite . config . Condition condition1 = new org . ocpsoft . rewrite . config . True ( ) ; org . ocpsoft . rewrite . config . Condition condition2 = new org . ocpsoft . rewrite . config . True ( ) ; org . ocpsoft . rewrite . config . Condition condition3 = new org . ocpsoft . r... | org . junit . Assert . assertEquals ( 5 , visited . size ( ) ) |
testGetAuthObjWithServerId ( ) { final com . microsoft . azure . maven . auth . AzureAuthHelper helper = new com . microsoft . azure . maven . auth . AzureAuthHelper ( mojo ) ; final com . microsoft . azure . maven . auth . AzureAuthHelper helperSpy = spy ( helper ) ; when ( mojo . getAuthenticationSetting ( ) ) . then... | org . junit . Assert . assertSame ( authenticated , helperSpy . getAuthObj ( ) ) |
testCreateBadFault ( ) { tMtTable1 . insert ( 1 , "g1" , "s1" ) ; org . apache . cayenne . ObjectId id = org . apache . cayenne . ObjectId . of ( "MtTable1" , MtTable1 . TABLE1_ID_PK_COLUMN , 2 ) ; java . lang . Object fault = clientContext . createFault ( id ) ; "<AssertPlaceHolder>" ; org . apache . cayenne . testdo ... | org . junit . Assert . assertTrue ( ( fault instanceof org . apache . cayenne . testdo . mt . ClientMtTable1 ) ) |
kfChatRecord ( ) { java . util . Calendar calendar = java . util . Calendar . getInstance ( ) ; calendar . set ( Calendar . HOUR_OF_DAY , 9 ) ; calendar . add ( Calendar . DAY_OF_MONTH , ( - 2 ) ) ; java . util . Date starttime = calendar . getTime ( ) ; calendar . set ( Calendar . HOUR_OF_DAY , 21 ) ; java . util . Da... | org . junit . Assert . assertFalse ( recordList . isEmpty ( ) ) |
testReplaceKeys ( ) { com . google . gson . JsonParser parser = new com . google . gson . JsonParser ( ) ; com . google . gson . JsonElement input = parser . parse ( getResourceString ( "basic_input_replacement.json" ) ) ; java . lang . String expectedOutput = getResourceString ( "basic_output_replacement.json" ) ; com... | org . junit . Assert . assertEquals ( parser . parse ( expectedOutput ) , input ) |
ensureExternalBucketsWork ( ) { assumeNonMaprProfile ( ) ; try ( org . apache . hadoop . fs . FileSystem fs = new com . dremio . plugins . s3 . store . S3FileSystem ( ) ) { org . apache . hadoop . conf . Configuration config = new org . apache . hadoop . conf . Configuration ( ) ; com . dremio . plugins . s3 . store . ... | org . junit . Assert . assertEquals ( 2 , fs . listStatus ( new org . apache . hadoop . fs . Path ( "/" ) ) . length ) |
getCurrentField_tfTest ( ) { expect ( mockScript . jjtGetNumChildren ( ) ) . andReturn ( 0 ) . anyTimes ( ) ; expect ( mockScript . jjtAccept ( isA ( datawave . query . jexl . visitors . EventDataQueryExpressionVisitor . class ) , eq ( "" ) ) ) . andReturn ( null ) ; replayAll ( ) ; org . apache . accumulo . core . dat... | org . junit . Assert . assertTrue ( field . equals ( "field" ) ) |
setTokenIndexNull ( ) { annis . model . AnnisNode node = new annis . model . AnnisNode ( 1 ) ; node . setTokenIndex ( null ) ; "<AssertPlaceHolder>" ; } isToken ( ) { return token ; } | org . junit . Assert . assertThat ( node . isToken ( ) , org . hamcrest . Matchers . is ( false ) ) |
getNumberOfUsersWhoCanStartProcessWithActorNotInitiator ( ) { final org . bonitasoft . engine . identity . model . SUser sUser1 = createEnabledSUser ( "firstname1" , "lastname1" , "pwd1" ) ; final org . bonitasoft . engine . identity . model . SUser sUser2 = createEnabledSUser ( "firstname2" , "lastname2" , "pwd2" ) ; ... | org . junit . Assert . assertEquals ( 0 , result ) |
testToRawTimeWithPositiveTimeOffSet ( ) { final java . lang . String expected = "time(\"22:30:10+03:00\")" ; final java . lang . String input = "22:30:10<sp>UTC<sp>+03:00" ; final java . lang . String actual = formatter . toRaw ( input ) ; "<AssertPlaceHolder>" ; } toRaw ( java . lang . String ) { if ( ! ( input . cont... | org . junit . Assert . assertEquals ( expected , actual ) |
testGetHasTypeRefs ( ) { final java . util . List < org . kie . workbench . common . dmn . api . definition . HasTypeRef > actualHasTypeRefs = informationItem . getHasTypeRefs ( ) ; final java . util . List < org . kie . workbench . common . dmn . api . definition . HasTypeRef > expectedHasTypeRefs = singletonList ( in... | org . junit . Assert . assertEquals ( expectedHasTypeRefs , actualHasTypeRefs ) |
testMatches ( ) { java . lang . String header = "<?xml<sp>version=\"\"?><PC-Compounds/>" ; "<AssertPlaceHolder>" ; } matches ( org . openscience . cdk . interfaces . IAtom ) { return ! ( symbols . contains ( atom . getSymbol ( ) ) ) ; } | org . junit . Assert . assertTrue ( matches ( header ) ) |
testToNewlineException ( ) { java . lang . String result = io . cloudslang . content . ssh . utils . StringUtils . toNewline ( "test" ) ; "<AssertPlaceHolder>" ; } toNewline ( java . lang . String ) { value = io . cloudslang . content . ssh . utils . StringUtils . toNotEmptyString ( value , Constants . DEFAULT_NEWLINE ... | org . junit . Assert . assertEquals ( result , "" ) |
deveObterQuantidadeTributavelComoFoiSetado ( ) { final com . fincatto . documentofiscal . nfe310 . classes . nota . NFNotaInfoItemProduto produto = new com . fincatto . documentofiscal . nfe310 . classes . nota . NFNotaInfoItemProduto ( ) ; final java . math . BigDecimal quantidadeTributavel = new java . math . BigDeci... | org . junit . Assert . assertEquals ( "9999999999.9999" , produto . getQuantidadeTributavel ( ) ) |
loadFile_nullFile ( ) { java . lang . String actual ; actual = cruise . umple . util . SampleFileWriter . readContent ( ( ( java . io . File ) ( null ) ) ) ; "<AssertPlaceHolder>" ; } | org . junit . Assert . assertEquals ( null , actual ) |
testGetLogWriter ( ) { java . io . PrintWriter printWriter = mock ( java . io . PrintWriter . class ) ; when ( actualDataSource . getLogWriter ( ) ) . thenReturn ( printWriter ) ; "<AssertPlaceHolder>" ; } getLogWriter ( ) { throw new java . lang . UnsupportedOperationException ( "getLogWriter" ) ; } | org . junit . Assert . assertSame ( printWriter , instance . getLogWriter ( ) ) |
testValidateSrcPortNull ( ) { org . powermock . reflect . Whitebox . setInternalState ( target , "srcPort" , ( ( java . lang . String ) ( null ) ) ) ; "<AssertPlaceHolder>" ; } validate ( ) { try { org . apache . commons . lang . Validate . notEmpty ( this . lowerNw , "lower_nw<sp>is<sp>empty" ) ; org . apache . common... | org . junit . Assert . assertFalse ( target . validate ( ) ) |
testOverlijdenCorrect ( ) { java . util . List < nl . bzk . brp . model . validatie . Melding > meldingen = bral0210 . executeer ( maakOverLedenPersoon ( null , null , null , null , null , null , null ) , maakOverLedenPersoon ( 20110831 , StatischeObjecttypeBuilder . GEMEENTE_AMSTERDAM , StatischeObjecttypeBuilder . LA... | org . junit . Assert . assertEquals ( 0 , meldingen . size ( ) ) |
testIsUseKeepAlive ( ) { System . out . println ( "isUseKeepAlive" ) ; boolean expResult = false ; boolean result = instance . isUseKeepAlive ( ) ; "<AssertPlaceHolder>" ; } isUseKeepAlive ( ) { return getPropertyAsBoolean ( kg . apc . jmeter . samplers . HTTPRawSampler . KEEPALIVE ) ; } | org . junit . Assert . assertEquals ( expResult , result ) |
testWildcard ( ) { org . apache . drill . exec . physical . impl . scan . TestColumnsArray . MockScanner mock = buildScanner ( org . apache . drill . exec . physical . rowSet . impl . RowSetTestUtils . projectAll ( ) ) ; org . apache . drill . exec . record . metadata . TupleMetadata expectedSchema = new org . apache .... | org . junit . Assert . assertNotNull ( mock . scanner . output ( ) ) |
test1 ( ) { int result = comparator . compare ( "0.0.1" , "0.0.2" ) ; "<AssertPlaceHolder>" ; } compare ( java . lang . String , java . lang . String ) { com . b2international . snowowl . snomed . api . rest . AntPathWildcardMatcher . AntPatternComparator . PatternInfo info1 = new com . b2international . snowowl . snom... | org . junit . Assert . assertTrue ( ( result < 0 ) ) |
testFailingCallsWithClientInterceptor ( ) { final java . lang . String ref1 = "IOR:000000000000000f49444c3a746573742f693a312e300000000000010000000000000082000102000000000a3132372e302e312e3100c55d00000031afabcb000000002038168fa300000001000000000000000100000008526f6f74504f4100000000080000000100000000140000000000000200000... | org . junit . Assert . assertTrue ( ( ( ClientInterceptor . count ) != 2 ) ) |
testInsertAsync ( ) { com . pardot . rhombus . functional . InsertTimingITCase . logger . debug ( "Starting<sp>testInsertAsync" ) ; com . pardot . rhombus . ConnectionManager cm = getConnectionManager ( ) ; com . pardot . rhombus . cobject . CKeyspaceDefinition definition = com . pardot . rhombus . util . JsonUtil . ob... | org . junit . Assert . assertNotNull ( definition ) |
testGetTruststoreInfo ( ) { org . codice . ddf . security . certificate . keystore . editor . KeystoreEditor keystoreEditor = new org . codice . ddf . security . certificate . keystore . editor . KeystoreEditor ( ) ; java . util . List < java . util . Map < java . lang . String , java . lang . Object > > truststore = k... | org . junit . Assert . assertThat ( truststore . size ( ) , org . hamcrest . core . Is . is ( 0 ) ) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.