input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
classloader_context_Test ( ) { java . net . URL [ ] urls = new java . net . URL [ ] { new java . net . URL ( "file:test-resources/classpath/single1/beans.jar" ) } ; java . net . URLClassLoader classLoader = new java . net . URLClassLoader ( urls , this . getClass ( ) . getClassLoader ( ) ) ; org . openl . rules . proje...
org . junit . Assert . assertNotNull ( instance )
testUnsigned128Bits ( ) { final long [ ] size = new long [ ] { 5 , 5 } ; final net . imglib2 . img . array . ArrayImg < net . imglib2 . type . numeric . integer . Unsigned128BitType , net . imglib2 . img . basictypeaccess . array . LongArray > img = net . imglib2 . img . array . ArrayImgs . unsigned128Bits ( size ) ; j...
org . junit . Assert . assertArrayEquals ( expected , actual )
testGetNotInstalledModulesRunnableListOfModuleNeededListOfModuleToInstallBoolean ( ) { java . util . List < org . talend . core . model . general . ModuleNeeded > neededModules = new java . util . ArrayList < org . talend . core . model . general . ModuleNeeded > ( ) ; org . talend . core . model . general . ModuleNeed...
org . junit . Assert . assertEquals ( 4 , toInstall1 . size ( ) )
AllConceptSources_shouldReturnAllUnretiredConceptSources ( ) { "<AssertPlaceHolder>" ; } getAllConceptSources ( boolean ) { org . hibernate . Criteria criteria = sessionFactory . getCurrentSession ( ) . createCriteria ( org . openmrs . ConceptSource . class ) ; if ( ! includeRetired ) { criteria . add ( org . hibernate...
org . junit . Assert . assertEquals ( dao . getAllConceptSources ( false ) . size ( ) , 3 )
test12_8 ( ) { int maxParts = java . lang . Runtime . getRuntime ( ) . availableProcessors ( ) ; int maxLength = 12 ; java . util . List < java . lang . Integer > list = new java . util . ArrayList < java . lang . Integer > ( maxLength ) ; for ( int j = 0 ; j < maxLength ; j ++ ) { list . add ( j ) ; } java . util . Li...
org . junit . Assert . assertEquals ( maxParts , out . size ( ) )
testSetSeriesToolTipGenerator ( ) { org . jfree . chart . plot . CategoryPlot plot = ( ( org . jfree . chart . plot . CategoryPlot ) ( this . chart . getPlot ( ) ) ) ; org . jfree . chart . renderer . category . CategoryItemRenderer renderer = plot . getRenderer ( ) ; org . jfree . chart . labels . StandardCategoryTool...
org . junit . Assert . assertTrue ( ( tt2 == tt ) )
testVariableDirectoryOrder ( ) { final java . lang . String s = "" + ( ( ( ( ( "c<sp>3<sp>Baz\n" + "c<sp>2<sp>Bar\n" ) + "c<sp>1<sp>Foo\n" ) + "p<sp>cnf<sp>3<sp>2\n" ) + "1<sp>-3<sp>0\n" ) + "2<sp>3<sp>-1<sp>0" ) ; final de . ovgu . featureide . fm . core . io . dimacs . DimacsReader r = new de . ovgu . featureide . fm...
org . junit . Assert . assertEquals ( expected , actual )
testAuhtenticationForWrongPassword ( ) { final com . bahadirakin . entities . User userStub = new com . bahadirakin . entities . User ( ) ; userStub . setUsername ( "bhdrkn" ) ; userStub . setPassword ( "passowrd" ) ; com . bahadirakin . controllers . Mockito . when ( userService . authenticate ( userStub ) ) . thenRet...
org . junit . Assert . assertEquals ( redirect , "errorPage?message=wrongPassword" )
testRemoveFromStringArray ( ) { java . lang . String [ ] array = new java . lang . String [ ] { "a" , "b" , "c" } ; array = com . liferay . portal . kernel . util . ArrayUtil . remove ( array , "c" ) ; "<AssertPlaceHolder>" ; } remove ( boolean [ ] , boolean ) { return com . liferay . portal . kernel . util . ArrayUtil...
org . junit . Assert . assertArrayEquals ( new java . lang . String [ ] { "a" , "b" } , array )
testInitStartupProbes ( ) { removeRemoteObject ( org . eclipse . rap . rwt . internal . textsize . MeasurementOperator . TYPE ) ; createProbe ( org . eclipse . rap . rwt . internal . textsize . MeasurementOperator_Test . FONT_DATA_1 ) ; org . eclipse . rap . rwt . internal . textsize . MeasurementOperator measurementOp...
org . junit . Assert . assertEquals ( 1 , measurementOperator . getProbeCount ( ) )
testEasyrecDataModel_hasPreferenceValues ( ) { org . easyrec . mahout . model . EasyrecDataModel easyrecDataModel = new org . easyrec . mahout . model . EasyrecDataModel ( org . easyrec . mahout . EasyrecDataModelTest . TENANT_ID , org . easyrec . mahout . EasyrecDataModelTest . RATE_ACTION_TYPE_ID , org . easyrec . ma...
org . junit . Assert . assertEquals ( true , hasPreferenceValues )
testPerformance ( ) { for ( final int limit : limits ) { final java . util . List < java . util . Map < java . lang . String , java . lang . Object > > records = holder . getRecords ( limit ) ; final net . meisen . dissertation . model . data . TidaModel model = loader . loadViaXslt ( "/net/meisen/dissertation/performa...
org . junit . Assert . assertEquals ( oldRes , res )
testSerialization ( ) { org . jfree . data . DefaultKeyedValue v1 = new org . jfree . data . DefaultKeyedValue ( "Test" , new java . lang . Double ( 25.3 ) ) ; org . jfree . data . DefaultKeyedValue v2 = ( ( org . jfree . data . DefaultKeyedValue ) ( org . jfree . chart . TestUtils . serialised ( v1 ) ) ) ; "<AssertPla...
org . junit . Assert . assertEquals ( v1 , v2 )
successTopic ( ) { config . setTopic ( "x" ) ; config . setSuccessTopic ( "y" ) ; "<AssertPlaceHolder>" ; } getSuccessTopic ( ) { return ( successTopic ) == null ? topic : successTopic ; }
org . junit . Assert . assertThat ( config . getSuccessTopic ( ) , org . hamcrest . CoreMatchers . is ( "y" ) )
testSimple ( ) { org . apache . uima . analysis_engine . AnalysisEngine engine = org . apache . uima . fit . factory . AnalysisEngineFactory . createEngine ( org . cleartk . opennlp . tools . PosTaggerAnnotator . getDescription ( ) ) ; tokenBuilder . buildTokens ( jCas , "The<sp>brown<sp>fox<sp>jumped<sp>quickly<sp>ove...
org . junit . Assert . assertEquals ( expected , actual )
clearAssociationMessage ( ) { org . openhab . binding . zwave . internal . protocol . commandclass . ZWaveMultiAssociationCommandClass cls = ( ( org . openhab . binding . zwave . internal . protocol . commandclass . ZWaveMultiAssociationCommandClass ) ( getCommandClass ( CommandClass . COMMAND_CLASS_MULTI_CHANNEL_ASSOC...
org . junit . Assert . assertTrue ( java . util . Arrays . equals ( msg . getPayloadBuffer ( ) , expectedResponseV1 ) )
testHybridFormat ( ) { try ( java . io . InputStream in = getJsonStream ( "org/ojai/test/data/hybridFormat.json" ) ; org . ojai . DocumentStream stream = org . ojai . json . Json . newDocumentStream ( in ) ) { int documentCount = getDocumentCount ( stream . documentReaders ( ) ) ; "<AssertPlaceHolder>" ; } } documentRe...
org . junit . Assert . assertEquals ( 6 , documentCount )
of_BD ( ) { org . javamoney . calc . common . Rate r = org . javamoney . calc . common . Rate . of ( java . math . BigDecimal . valueOf ( 0.0567 ) ) ; "<AssertPlaceHolder>" ; } of ( java . math . BigDecimal ) { return new org . javamoney . calc . common . Rate ( rate , null ) ; }
org . junit . Assert . assertNotNull ( r )
testValidateExternalToken ( ) { java . lang . String rand = org . apache . commons . lang . RandomStringUtils . randomAlphanumeric ( 10 ) ; final java . lang . String username = "user_" + rand ; management ( ) . orgs ( ) . post ( new org . apache . usergrid . rest . management . Organization ( username , username , ( u...
org . junit . Assert . assertNotNull ( token )
testInitialConnect ( ) { com . spotify . folsom . reconnect . ReconnectingClientTest . FakeClient delegate = new com . spotify . folsom . reconnect . ReconnectingClientTest . FakeClient ( true , false ) ; com . spotify . folsom . BackoffFunction backoffFunction = mock ( com . spotify . folsom . BackoffFunction . class ...
org . junit . Assert . assertTrue ( client . isConnected ( ) )
testIsEqual ( ) { com . eclipsesource . tabris . tracking . OrderItem item = new com . eclipsesource . tabris . tracking . OrderItem ( "foo" ) ; com . eclipsesource . tabris . tracking . OrderItem item2 = new com . eclipsesource . tabris . tracking . OrderItem ( "foo" ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( item , item2 )
size_bicyclo ( ) { int [ ] [ ] bicyclo = org . openscience . cdk . graph . InitialCyclesTest . bicyclo ( ) ; org . openscience . cdk . graph . MinimumCycleBasis mcb = new org . openscience . cdk . graph . MinimumCycleBasis ( bicyclo ) ; "<AssertPlaceHolder>" ; } size ( ) { return this . cells . size ( ) ; }
org . junit . Assert . assertThat ( mcb . size ( ) , org . hamcrest . CoreMatchers . is ( 2 ) )
testCopyActionServiceGeneration ( ) { java . lang . Boolean actionServiceRegistered = false ; java . util . List < it . geosolutions . geobatch . annotations . GenericActionService > actionList = it . geosolutions . geobatch . annotations . ActionServicePostProcessor . getActionList ( ) ; for ( it . geosolutions . geob...
org . junit . Assert . assertTrue ( actionServiceRegistered )
testMeanEdgeCase2_F ( ) { org . nd4j . linalg . api . ndarray . INDArray arr = org . nd4j . linalg . factory . Nd4j . linspace ( 1 , 60 , 60 , DataType . DOUBLE ) . reshape ( new int [ ] { 3 , 10 , 2 } ) . dup ( 'f' ) ; org . nd4j . linalg . api . ndarray . INDArray arr2 = arr . mean ( 2 ) ; org . nd4j . linalg . api ....
org . junit . Assert . assertEquals ( exp , arr2 )
testPluginname ( ) { rule . setXPath ( "//VariableDeclaratorId[string-length(@Image)<sp><<sp>3]" ) ; rule . setMessage ( "{0}" ) ; net . sourceforge . pmd . Report report = net . sourceforge . pmd . lang . java . rule . XPathRuleTest . getReportForTestString ( rule , net . sourceforge . pmd . lang . java . rule . XPath...
org . junit . Assert . assertEquals ( "a" , rv . getDescription ( ) )
testEvalXmlDocuments ( ) { com . intuit . karate . core . ScenarioContext ctx = getContext ( ) ; org . w3c . dom . Document doc = com . intuit . karate . XmlUtils . toXmlDoc ( "<root><foo>bar</foo><hello>world</hello></root>" ) ; ctx . vars . put ( "myXml" , doc ) ; com . intuit . karate . ScriptValue value = com . int...
org . junit . Assert . assertEquals ( "bar" , value . getValue ( ) )
formatPath ( ) { loghub . VarFormatter vf = new loghub . VarFormatter ( "${a.b}" , java . util . Locale . ENGLISH ) ; java . util . Map < java . lang . String , java . util . Map < java . lang . String , java . lang . Object > > obj = java . util . Collections . singletonMap ( "a" , java . util . Collections . singleto...
org . junit . Assert . assertEquals ( "c" , formatted )
testToEbXMLEmpty ( ) { transformer . toEbXML ( new org . openehealth . ipf . commons . ihe . xds . core . requests . query . GetDocumentsAndAssociationsQuery ( ) , ebXML ) ; "<AssertPlaceHolder>" ; } getSlots ( ) { return getSlotList ( ) . getSlots ( ) ; }
org . junit . Assert . assertEquals ( 0 , ebXML . getSlots ( ) . size ( ) )
getDefaultIconWhenInCache ( ) { org . xwiki . icon . IconSet iconSet = new org . xwiki . icon . IconSet ( "default" ) ; when ( iconSetCache . get ( "default" ) ) . thenReturn ( iconSet ) ; org . xwiki . icon . IconSet result = mocker . getComponentUnderTest ( ) . getDefaultIconSet ( ) ; "<AssertPlaceHolder>" ; verify (...
org . junit . Assert . assertEquals ( iconSet , result )
testGetCacheSize ( ) { org . eclipse . tracecompass . tmf . ctf . core . trace . CtfTmfTrace emptyFixture = new org . eclipse . tracecompass . tmf . ctf . core . trace . CtfTmfTrace ( ) ; int result = emptyFixture . getCacheSize ( ) ; "<AssertPlaceHolder>" ; emptyFixture . dispose ( ) ; } getCacheSize ( ) { return fCac...
org . junit . Assert . assertEquals ( 1000 , result )
testSerialization ( ) { org . jfree . data . time . TimePeriodValuesCollection c1 = new org . jfree . data . time . TimePeriodValuesCollection ( ) ; org . jfree . data . time . TimePeriodValuesCollection c2 = ( ( org . jfree . data . time . TimePeriodValuesCollection ) ( org . jfree . chart . TestUtilities . serialised...
org . junit . Assert . assertEquals ( c1 , c2 )
testGenerator_Default2 ( ) { java . lang . String first = "anything<sp>\n<sp>\nother" ; java . lang . String second = "anything\n\nother" ; com . github . difflib . text . DiffRowGenerator generator = com . github . difflib . text . DiffRowGenerator . create ( ) . columnWidth ( 0 ) . build ( ) ; java . util . List < co...
org . junit . Assert . assertEquals ( 3 , rows . size ( ) )
jsonSerializationPartitionOffset ( ) { org . apache . crunch . kafka . offset . hdfs . Offsets . PartitionOffset partitionOffset = Offsets . PartitionOffset . Builder . newBuilder ( ) . setTopic ( testName . getMethodName ( ) ) . setOffset ( 12L ) . setPartition ( 1 ) . build ( ) ; org . apache . commons . io . output ...
org . junit . Assert . assertThat ( readOffset , org . hamcrest . core . Is . is ( partitionOffset ) )
getPreferredName_shouldReturnTheFullySpecifiedNameIfNoNameIsExplicitlyMarkedAsLocalePreferred ( ) { org . openmrs . Concept testConcept = createConcept ( 1 , Locale . US ) ; org . openmrs . ConceptName preferredNameEN_US = createConceptName ( 3 , "Aspirin" , Locale . US , null , false ) ; testConcept . addName ( prefer...
org . junit . Assert . assertEquals ( fullySpecName , testConcept . getPreferredName ( Locale . US ) . getName ( ) )
testBinaryAnnotations ( ) { org . apache . parquet . schema . OriginalType . OriginalType [ ] types = new org . apache . parquet . schema . OriginalType . OriginalType [ ] { UTF8 , JSON , BSON } ; for ( final org . apache . parquet . schema . OriginalType . OriginalType logicalType : types ) { org . apache . parquet . ...
org . junit . Assert . assertEquals ( expected , string )
testGetEndInsertionCode ( ) { org . openscience . cdk . interfaces . IPDBStructure structure = org . openscience . cdk . interfaces . AbstractPDBStructureTest . getBuilder ( ) . newInstance ( org . openscience . cdk . interfaces . IPDBStructure . class ) ; "<AssertPlaceHolder>" ; } getEndInsertionCode ( ) { return endI...
org . junit . Assert . assertNull ( structure . getEndInsertionCode ( ) )
testGetMVS ( ) { final ch . cyberduck . core . ftp . parser . CompositeFileEntryParser parser = new ch . cyberduck . core . ftp . FTPParserSelector ( ) . getParser ( "MVS<sp>is<sp>the<sp>operating<sp>system<sp>of<sp>this<sp>server.<sp>FTP<sp>Server<sp>is<sp>running<sp>on<sp>z/OS." ) ; final java . lang . String line = ...
org . junit . Assert . assertNotNull ( parser . parseFTPEntry ( line ) )
testRemoveWithIteratorInComplexPatternReverse ( ) { for ( org . sweble . wom3 . impl . SiblingRangeCollectionTest . ChildNode e : nodes ) c . add ( e ) ; java . util . ListIterator < org . sweble . wom3 . impl . SiblingRangeCollectionTest . ChildNode > i = c . listIterator ( c . size ( ) ) ; while ( i . hasPrevious ( )...
org . junit . Assert . assertEquals ( ( ( nodes . size ( ) ) / 2 ) , c . size ( ) )
testPublicClientIdOnly ( ) { java . lang . String pubPort = org . apache . cxf . systest . jaxrs . security . oauth2 . grants . JAXRSOAuth2Test . JCACHE_PORT_PUBLIC ; if ( org . apache . cxf . systest . jaxrs . security . oauth2 . grants . JAXRSOAuth2Test . JWT_JCACHE_PORT . equals ( port ) ) { pubPort = org . apache ....
org . junit . Assert . assertNotNull ( at . getTokenKey ( ) )
testFieldsIsSet_null ( ) { fixture . setFields ( ( ( org . eclipse . tracecompass . ctf . core . event . types . StructDeclaration ) ( null ) ) ) ; boolean result = fixture . fieldsIsSet ( ) ; "<AssertPlaceHolder>" ; } fieldsIsSet ( ) { return ( fFields ) != null ; }
org . junit . Assert . assertFalse ( result )
testHyphenationRemoverInPipelineReaderWriter ( ) { java . io . File outputPath = testContext . getTestOutputFolder ( ) ; final java . lang . String language = "de" ; final java . lang . String variant = "maxent" ; java . lang . String sourcePath = "src/test/resources/texts/test3.txt" ; final java . lang . String expect...
org . junit . Assert . assertEquals ( expected , actual )
showCarbon_SingleCarbonTest ( ) { org . openscience . cdk . interfaces . IAtomContainer atomContainer = super . makeSingleAtom ( "C" ) ; org . openscience . cdk . interfaces . IAtom carbon = atomContainer . getAtom ( 0 ) ; "<AssertPlaceHolder>" ; } showCarbon ( org . openscience . cdk . interfaces . IAtom , org . opens...
org . junit . Assert . assertTrue ( generator . showCarbon ( carbon , atomContainer , model ) )
test_matchSubUrls_fail_two_params ( ) { java . util . Map < java . lang . String , java . lang . String > params = urlMarcher . matchSubUrls ( "{id}_{key}" , "abc-test" ) ; "<AssertPlaceHolder>" ; } matchSubUrls ( java . lang . String , java . lang . String ) { boolean canContinue = true ; java . util . Map < java . la...
org . junit . Assert . assertTrue ( ( params == null ) )
shouldStartWithTreeFocused ( ) { org . infinitest . intellij . plugin . swingui . TreeFocusListener listener = new org . infinitest . intellij . plugin . swingui . TreeFocusListener ( ) { @ org . infinitest . intellij . plugin . swingui . Override protected void setFocus ( org . infinitest . intellij . plugin . swingui...
org . junit . Assert . assertEquals ( resultsPane . getTree ( ) , focusedComponent )
test01 ( ) { com . ebay . cloud . cms . metadata . model . MetaClass metadata = raptorMetaService . getMetaClass ( "ServiceInstance" ) ; com . ebay . cloud . cms . dal . search . SearchGroup group = new com . ebay . cloud . cms . dal . search . SearchGroup ( ) ; group . addGroupField ( createGroupField ( metadata , "he...
org . junit . Assert . assertEquals ( 2 , result . getResultSize ( ) )
ensureShutdownWithBlockedQueue ( ) { try { java . util . concurrent . ExecutorService service = java . util . concurrent . Executors . newSingleThreadExecutor ( ) ; int before = java . lang . Thread . activeCount ( ) ; final org . apache . streams . core . StreamBuilder builder = new org . apache . streams . local . bu...
org . junit . Assert . assertThat ( java . lang . Thread . activeCount ( ) , org . hamcrest . Matchers . is ( org . hamcrest . Matchers . equalTo ( before ) ) )
configureDatabaseNameTestCustomDbName ( ) { java . lang . String configuredDbName = "dbName" ; java . net . URI uri = new java . net . URI ( ( ( com . cloud . server . StatsCollectorTest . URL ) + configuredDbName ) ) ; java . lang . String dbName = statsCollector . configureDatabaseName ( uri ) ; "<AssertPlaceHolder>"...
org . junit . Assert . assertEquals ( configuredDbName , dbName )
testThatNoPortWorks ( ) { youTrackInstance = new com . ontometrics . integrations . configuration . YouTrackInstance . Builder ( ) . baseUrl ( "http://ontometrics.com" ) . build ( ) ; "<AssertPlaceHolder>" ; } getBaseUrl ( ) { java . net . URL url ; try { url = new java . net . URL ( baseUrl ) ; } catch ( java . net . ...
org . junit . Assert . assertThat ( youTrackInstance . getBaseUrl ( ) , org . hamcrest . CoreMatchers . is ( new java . net . URL ( "http://ontometrics.com" ) ) )
tesGroepen13 ( ) { final java . lang . String message = maakLo3VerblijfplaatsInhoud ( new nl . bzk . migratiebrp . conversie . model . lo3 . element . Lo3GemeenteCode ( nl . bzk . migratiebrp . conversie . model . lo3 . categorie . Lo3VerblijfplaatsInhoudTest . "adres3" 234 ) , new nl . bzk . migratiebrp . conversie . ...
org . junit . Assert . assertEquals ( "" , message )
testBadPassword_PreHashedServer ( ) { java . util . Map < java . lang . String , java . lang . Object > serverProps = new java . util . HashMap < java . lang . String , java . lang . Object > ( ) ; serverProps . put ( org . wildfly . security . sasl . digest . DigestTest . REALM_PROPERTY , "TestRealm" ) ; serverProps ....
org . junit . Assert . assertFalse ( client . hasInitialResponse ( ) )
testOnException ( ) { java . util . concurrent . atomic . AtomicReference < org . slieb . throwables . java . lang . Throwable > reference = new java . util . concurrent . atomic . AtomicReference ( ) ; org . slieb . throwables . java . lang . Exception expected = new org . slieb . throwables . java . lang . Exception ...
org . junit . Assert . assertEquals ( expected , reference . get ( ) )
checkSchemaRefresh ( ) { final com . orientechnologies . orient . core . db . OPartitionedDatabasePool pool = new com . orientechnologies . orient . core . db . OPartitionedDatabasePool ( dbo . getURL ( ) , "admin" , "admin" ) ; try { com . orientechnologies . orient . core . db . document . ODatabaseDocument db = pool...
org . junit . Assert . assertNotNull ( clazz )
shouldNotCacheAllAuthors ( ) { int first = - 1 ; int second = - 1 ; org . apache . ibatis . session . SqlSession session = org . apache . ibatis . session . SqlSessionTest . sqlMapper . openSession ( ) ; try { java . util . List < org . apache . ibatis . domain . blog . Author > authors = session . selectList ( "org.ap...
org . junit . Assert . assertTrue ( ( first != second ) )
selectComplexNestedCollectionOfComplexWithMetadataNone ( ) { final java . lang . String METADATA_TEXT = "@odata." ; final org . apache . olingo . commons . api . edm . EdmEntitySet edmEntitySet = org . apache . olingo . server . core . serializer . json . ODataJsonSerializerTest . entityContainer . getEntitySet ( "ESCo...
org . junit . Assert . assertEquals ( false , resultString . contains ( METADATA_TEXT ) )
testRead ( ) { ca . corefacility . bioinformatics . irida . utils . model . IdentifiableTestEntity i = new ca . corefacility . bioinformatics . irida . utils . model . IdentifiableTestEntity ( ) ; i . setId ( new java . lang . Long ( 1 ) ) ; i . setNonNull ( "Definitely<sp>not<sp>null" ) ; when ( crudRepository . findO...
org . junit . Assert . assertNotNull ( i )
testExtFun3 ( ) { java . lang . String init = "prefix<sp>ex:<sp><http://example.org/><sp>" + ( ( "insert<sp>data<sp>{" + "ex:John<sp>rdf:value<sp>1,<sp>2<sp>" ) + "}" ) ; java . lang . String q = "prefix<sp>ex:<sp><http://example.org/><sp>" + ( ( ( ( ( ( ( "select<sp>*<sp>" + "where<sp>{" ) + "?x<sp>rdf:value<sp>?n<sp>...
org . junit . Assert . assertEquals ( 2 , map . size ( ) )
test1Jan1900Previous ( ) { org . jfree . data . time . Day jan1st1900 = new org . jfree . data . time . Day ( 1 , org . jfree . date . MonthConstants . JANUARY , 1900 ) ; org . jfree . data . time . Day previous = ( ( org . jfree . data . time . Day ) ( jan1st1900 . previous ( ) ) ) ; "<AssertPlaceHolder>" ; } previous...
org . junit . Assert . assertNull ( previous )
testSerial ( ) { org . apache . commons . math4 . fraction . BigFractionField field = org . apache . commons . math4 . fraction . BigFractionField . getInstance ( ) ; "<AssertPlaceHolder>" ; } serializeAndRecover ( java . lang . Object ) { try { java . io . ByteArrayOutputStream bos = new java . io . ByteArrayOutputStr...
org . junit . Assert . assertTrue ( ( field == ( org . apache . commons . math4 . TestUtils . serializeAndRecover ( field ) ) ) )
shouldStillZeroAfterEatStone ( ) { scores = new com . codenjoy . dojo . snake . services . Scores ( 0 , settings ) ; snakeEatStone ( ) ; "<AssertPlaceHolder>" ; } score ( ) { return killed ; }
org . junit . Assert . assertEquals ( 0 , score ( ) )
testAccountInactive ( ) { org . whispersystems . textsecuregcm . storage . Account oldPrimaryAccount = new org . whispersystems . textsecuregcm . storage . Account ( "+14152222222" , new java . util . HashSet < org . whispersystems . textsecuregcm . storage . Device > ( ) { { add ( oldMasterDevice ) ; add ( oldSecondar...
org . junit . Assert . assertFalse ( oldPrimaryAccount . isActive ( ) )
testParse ( ) { com . KnappTech . xml . SimpleNode n = com . KnappTech . xml . NodeParser . parse ( textXML ) ; System . out . println ( ( "Original:\n" + ( textXML ) ) ) ; System . out . println ( ( "Produced:\n" + n ) ) ; "<AssertPlaceHolder>" ; } parse ( java . lang . String ) { com . KnappTech . xml . SimpleSAJHand...
org . junit . Assert . assertTrue ( ( n != null ) )
testExcessReduceContainerAssign ( ) { final org . apache . hadoop . conf . Configuration conf = new org . apache . hadoop . conf . Configuration ( ) ; conf . setFloat ( MRJobConfig . COMPLETED_MAPS_FOR_REDUCE_SLOWSTART , 0.0F ) ; final org . apache . hadoop . mapreduce . v2 . app . rm . TestRMContainerAllocator . MyRes...
org . junit . Assert . assertEquals ( assignedContainer , 1 )
testInitialize ( ) { org . talend . components . salesforce . runtime . SalesforceSourceOrSink salesforceSourceOrSink = new org . talend . components . salesforce . runtime . SalesforceSourceOrSink ( ) ; org . talend . components . salesforce . tsalesforceinput . TSalesforceInputProperties properties = new org . talend...
org . junit . Assert . assertEquals ( properties . connection , salesforceSourceOrSink . getConnectionProperties ( ) )
isChannelPresentTest ( ) { java . lang . String channel = "aidr_predict.mock_collection" + ( new java . util . Date ( ) ) ; boolean result = qa . qcri . aidr . output . getdata . TestGetBufferedAIDRData . getBufferedAIDRData . isChannelPresent ( channel ) ; "<AssertPlaceHolder>" ; } isChannelPresent ( java . lang . Str...
org . junit . Assert . assertFalse ( result )
replaceData_pastEnd ( ) { final org . exist . dom . memtree . MemTreeBuilder builder = new org . exist . dom . memtree . MemTreeBuilder ( ) ; builder . startDocument ( ) ; builder . startElement ( new org . exist . dom . QName ( "p" , null , null ) , null ) ; builder . characters ( "hello" ) ; builder . startElement ( ...
org . junit . Assert . assertEquals ( "hello" , text . getTextContent ( ) )
testGetParametersWithDisabledDEfaults ( ) { unit . setActive ( false ) ; unit . setSecurity ( false ) ; java . lang . Long personId = 1L ; org . lnu . is . domain . person . Person person = new org . lnu . is . domain . person . Person ( ) ; person . setId ( personId ) ; java . lang . Long degreeTypeId = 2L ; org . lnu...
org . junit . Assert . assertEquals ( expected , actual )
getRealm ( ) { com . ibm . websphere . simplicity . log . Log . info ( com . ibm . ws . security . wim . adapter . ldap . fat . FATTestIDSFailover . c , "getRealm" , "Checking<sp>expected<sp>realm" ) ; "<AssertPlaceHolder>" ; } getRealm ( ) { com . ibm . websphere . simplicity . log . Log . info ( com . ibm . ws . secu...
org . junit . Assert . assertEquals ( "SampleLdapIDSRealm" , com . ibm . ws . security . wim . adapter . ldap . fat . FATTestIDSFailover . servlet . getRealm ( ) )
testGetStringValue ( ) { org . wikidata . wdtk . datamodel . implementation . StringValue o1 = new org . wikidata . wdtk . datamodel . implementation . StringValueImpl ( "foo" ) ; org . wikidata . wdtk . datamodel . implementation . StringValue o2 = factory . getStringValue ( "foo" ) ; "<AssertPlaceHolder>" ; } getStri...
org . junit . Assert . assertEquals ( o1 , o2 )
removeTrailingSlashes_withTwoSlashes ( ) { java . lang . StringBuffer url = new java . lang . StringBuffer ( ) ; url . append ( ( ( org . oscm . internal . passwordrecovery . PasswordRecoveryLinkTest . BASE_URL ) + "//" ) ) ; link . removeTrailingSlashes ( url ) ; "<AssertPlaceHolder>" ; } removeTrailingSlashes ( java ...
org . junit . Assert . assertEquals ( org . oscm . internal . passwordrecovery . PasswordRecoveryLinkTest . BASE_URL . length ( ) , url . length ( ) )
testGetPoolsBySubIdNull ( ) { org . candlepin . model . Owner owner2 = createOwner ( ) ; ownerCurator . create ( owner2 ) ; createPool ( owner2 , "id123" ) ; java . util . List < org . candlepin . model . Pool > result = poolCurator . getPoolsBySubscriptionId ( null ) . list ( ) ; "<AssertPlaceHolder>" ; } isEmpty ( ) ...
org . junit . Assert . assertTrue ( result . isEmpty ( ) )
consolidate ( ) { org . apache . jackrabbit . oak . api . Root root = session . getLatestRoot ( ) ; org . apache . jackrabbit . oak . api . Tree t = root . getTree ( "/" ) ; org . apache . jackrabbit . oak . api . Tree counter = t . addChild ( "counter" ) ; counter . setProperty ( org . apache . jackrabbit . JcrConstan...
org . junit . Assert . assertEquals ( 1 , org . apache . jackrabbit . oak . jcr . AtomicCounterIT . counterValue ( session , counter . getPath ( ) ) )
testGetLocalizedStringExactMatchLanguageCountryVariantFrench ( ) { org . pentaho . metadata . model . concept . types . LocalizedString s = new org . pentaho . metadata . model . concept . types . LocalizedString ( ) ; s . setString ( "fr_FR_WIN" , "fr_FR_WIN<sp>value" ) ; s . setString ( "fr_FR" , "fr_FR<sp>value" ) ;...
org . junit . Assert . assertEquals ( "fr_FR_WIN<sp>value" , s . getLocalizedString ( "fr_FR_WIN" ) )
testEvaluateTwoIndexDiffVarsDirProd ( ) { final java . lang . String indexSparqlString = "<sp>?e<sp><uri:talksTo><sp>?o<sp>.<sp>" 0 + ( ( ( ( "SELECT<sp>?pig<sp>?dog<sp>?chicken<sp>" + "{" ) + "<sp>?e<sp><uri:talksTo><sp>?o<sp>.<sp>" 3 ) + "<sp>?dog<sp><http://www.w3.org/2000/01/rdf-schema#label><sp>?pig<sp>" ) + "}" )...
org . junit . Assert . assertEquals ( false , ipv . isValid ( tup ) )
testEquals ( ) { java . lang . String str1 = "test" ; java . lang . String str2 = "test" ; int result = org . evosuite . instrumentation . testability . StringHelper . StringEquals ( str1 , str2 ) ; "<AssertPlaceHolder>" ; } StringEquals ( java . lang . String , java . lang . Object ) { if ( first == null ) { throw new...
org . junit . Assert . assertTrue ( ( result > 0 ) )
testEqualsObjectNull ( ) { java . lang . Object obj = null ; "<AssertPlaceHolder>" ; } equals ( java . lang . Object ) { if ( obj == ( this ) ) { return true ; } if ( ! ( obj instanceof org . o3project . odenos . remoteobject . event . EventSubscription ) ) { return false ; } org . o3project . odenos . remoteobject . e...
org . junit . Assert . assertThat ( target . equals ( obj ) , org . hamcrest . CoreMatchers . is ( false ) )
merge ( ) { int [ ] a = new int [ ] { 1 , 2 , 3 } ; int [ ] b = new int [ ] { 2 , 3 } ; int [ ] newArray = creatArrayUtil ( ) . merge ( a , b ) ; info ( newArray ) ; "<AssertPlaceHolder>" ; } info ( int [ ] ) { System . out . println ( java . util . Arrays . toString ( array ) ) ; }
org . junit . Assert . assertArrayEquals ( new int [ ] { 1 , 2 , 3 } , newArray )
shouldFailOnInvalidInput ( ) { java . util . Collection < java . lang . String > expressions = java . util . Arrays . asList ( "2x" , "f(x,)" , "~3" , "" , "*2" , "f(3,<sp>x" ) ; for ( java . lang . String expression : expressions ) { boolean isFailed = false ; try { org . qcri . rheem . core . util . mathex . Expressi...
org . junit . Assert . assertTrue ( isFailed )
testUploadJar ( ) { java . util . Map < java . lang . String , java . lang . String > config = new java . util . HashMap ( ) ; config . put ( HdfsFileStorage . CONFIG_FSURL , "file:///" ) ; fileStorage . init ( config ) ; java . io . File file = java . io . File . createTempFile ( "test" , ".tmp" ) ; file . deleteOnExi...
org . junit . Assert . assertEquals ( lines , actual )
letsMockListSize ( ) { java . util . List list = mock ( java . util . List . class ) ; when ( list . size ( ) ) . thenReturn ( 10 ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( 10 , list . size ( ) )
testGetConnectionProperties ( ) { org . talend . components . marklogic . tmarklogicconnection . MarkLogicConnectionProperties connectionProperties = new org . talend . components . marklogic . tmarklogicconnection . MarkLogicConnectionProperties ( "connectionProperties" ) ; connectionProperties . init ( ) ; testOutput...
org . junit . Assert . assertEquals ( connectionProperties , testOutputProperties . getConnectionProperties ( ) )
shouldHashSha512 ( ) { java . lang . String [ ] correctHashes = new java . lang . String [ ] { "cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e" , "b109f3bbbc244eb82441917ed06d618b9008dd09b3befd1b5e07394c706a8bb980b1d7785e5976ec049b46df5f1...
org . junit . Assert . assertThat ( result , org . hamcrest . Matchers . contains ( correctHashes ) )
testEqualPredicate ( ) { com . feilong . store . member . User user = new com . feilong . store . member . User ( 2L ) ; org . apache . commons . collections4 . Predicate < com . feilong . store . member . User > equalPredicate = com . feilong . core . util . predicate . BeanPredicateUtil . equalPredicate ( "id" , 2L )...
org . junit . Assert . assertEquals ( true , equalPredicate . evaluate ( user ) )
testEqualsForNotEqualityOfPrimitiveArrays ( ) { double [ ] a1 = new double [ ] { 1.0 , 2.0 , 3.0 , 4.0 } ; double [ ] a2 = new double [ ] { 4.0 , 3.0 , 2.0 , 1.0 } ; "<AssertPlaceHolder>" ; } equals ( java . lang . Object , java . lang . Object ) { if ( ( array1 == null ) || ( array2 == null ) ) { return false ; } if (...
org . junit . Assert . assertFalse ( cz . zcu . kiv . jop . util . ArrayUtils . equals ( a1 , a2 ) )
shouldRejectHostMachines ( ) { cluster . setNumberOfHostMachines ( 2 ) ; org . openstack . atlas . api . validation . results . ValidatorResult result = cTest . validate ( cluster , org . openstack . atlas . api . mgmt . validation . validators . PUT ) ; "<AssertPlaceHolder>" ; } resultMessage ( org . openstack . atlas...
org . junit . Assert . assertFalse ( resultMessage ( result , org . openstack . atlas . api . mgmt . validation . validators . PUT ) , result . passedValidation ( ) )
isValidConfiguration3 ( ) { final de . ovgu . featureide . fm . core . configuration . Configuration c = new de . ovgu . featureide . fm . core . configuration . Configuration ( FM_test_1 , true ) ; c . setManual ( "C#" , Selection . SELECTED ) ; c . setManual ( "Python<sp>Ruby" , Selection . SELECTED ) ; c . setManual...
org . junit . Assert . assertTrue ( c . isValid ( ) )
testEncodeHDFSRare ( ) { System . out . println ( ( ( com . telefonica . iot . cygnus . utils . CommonUtilsForTests . getTestTraceHead ( "[NGSICharsets.encodeHDFS]" ) ) + "--------<sp>Rare<sp>characters<sp>are<sp>not<sp>encoded" ) ) ; java . lang . String in = "ÁÉÍÓÚáéíóúÑñÇç!\"#$%&\'()*+,.-_:;<>?@[\\]^`{|}~" ; java . ...
org . junit . Assert . assertEquals ( expected , out )
testSerialization ( ) { org . jfree . chart . axis . DateTick t1 = new org . jfree . chart . axis . DateTick ( new java . util . Date ( 0L ) , "Label" , org . jfree . chart . ui . TextAnchor . CENTER , org . jfree . chart . ui . TextAnchor . CENTER , 10.0 ) ; org . jfree . chart . axis . DateTick t2 = ( ( org . jfree ....
org . junit . Assert . assertEquals ( t1 , t2 )
execute_noMarketplace ( ) { given ( "user1" , UserRoleType . ORGANIZATION_ADMIN ) ; handler . payload . setMarketplaceId ( null ) ; handler . execute ( ) ; org . oscm . taskhandling . operations . Report report = handler . report ; "<AssertPlaceHolder>" ; } buildMailType ( ) { if ( ( failures ) == 0 ) { return org . os...
org . junit . Assert . assertEquals ( EmailType . BULK_USER_IMPORT_SUCCESS , report . buildMailType ( ) )
testAuditingOverTransaction ( ) { try { org . jboss . as . test . integration . jpa . transaction . envers . SFSB1 sfsb1 = lookup ( "SFSB1" , org . jboss . as . test . integration . jpa . transaction . envers . SFSB1 . class ) ; org . jboss . as . test . integration . jpa . transaction . envers . Employee emp = sfsb1 ....
org . junit . Assert . assertEquals ( "1<sp>home<sp>street" , address )
mockGenericClassHavingTypeArgumentOfArrayTypeWith2DPrimitiveComponent ( mockit . GenericMockedTypesTest$GenericBase ) { int [ ] [ ] result = mock . doSomething ( ) ; "<AssertPlaceHolder>" ; } doSomething ( ) { return 1 ; }
org . junit . Assert . assertEquals ( 0 , result . length )
useGzipFalse_WhenCrc32IsValid ( ) { stubFor ( post ( urlEqualTo ( software . amazon . awssdk . protocol . tests . crc32 . RestJsonCrc32ChecksumTests . RESOURCE_PATH ) ) . willReturn ( aResponse ( ) . withStatus ( 200 ) . withHeader ( "x-amz-crc32" , software . amazon . awssdk . protocol . tests . crc32 . RestJsonCrc32C...
org . junit . Assert . assertEquals ( "foo" , result . stringMember ( ) )
testTrimNewlineInSubtemplates ( ) { org . stringtemplate . v4 . STGroup group = new org . stringtemplate . v4 . STGroup ( ) ; group . defineTemplate ( "test" , "names" , ( "<names:{n<sp>|\n" + "<n>}>!" ) ) ; org . stringtemplate . v4 . ST st = group . getInstanceOf ( "test" ) ; st . add ( "names" , "Ter" ) ; st . add (...
org . junit . Assert . assertEquals ( expected , result )
G_modelExists_W_getModel_T_verifyModel ( ) { when ( mockConnection . getResponseCode ( ) ) . thenReturn ( 200 ) ; when ( mockConnection . getInputStream ( ) ) . thenReturn ( this . getClass ( ) . getResourceAsStream ( "/get_model.json" ) ) ; final com . codepine . api . testrail . RequestTest . Model actualModel = mode...
org . junit . Assert . assertEquals ( expectedModel , actualModel )
test_boolByURL ( ) { java . lang . String response = sendGetRequest ( "/call/test/test_bool?p=true" , 200 ) ; com . eclipsesource . json . JsonValue result = getValueFromResponse ( response ) ; boolean value = result . asBoolean ( ) ; "<AssertPlaceHolder>" ; } getValueFromResponse ( java . lang . String ) { com . eclip...
org . junit . Assert . assertTrue ( value )
testFKWithNIS ( ) { java . lang . String ddl = "CREATE<sp>FOREIGN<sp>TABLE<sp>\"Table\"<sp>(" + ( ( ( ( "<sp>Column2<sp>char(1)," 0 + "\n\tColumn2<sp>char(1)," ) + "\n\tCONSTRAINT<sp>PrimaryKey<sp>PRIMARY<sp>KEY(Column1)<sp>OPTIONS(NAMEINSOURCE<sp>\'pkNameInSource\')," ) + "<sp>Column2<sp>char(1)," 1 ) + "\n)<sp>OPTION...
org . junit . Assert . assertEquals ( expectedDdl , generatedDdl )
byteArrayTest ( ) { byte [ ] array = new byte [ ] { 1 , 2 , 5 , 6 , 8 , 9 } ; com . jfireframework . licp . Licp lbse = new com . jfireframework . licp . Licp ( ) ; lbse . serialize ( array , buf . clear ( ) ) ; byte [ ] result = ( ( byte [ ] ) ( lbse . deserialize ( buf ) ) ) ; for ( int i = 0 ; i < ( array . length )...
org . junit . Assert . assertEquals ( array [ i ] , result [ i ] )
testLexSortedSet ( ) { org . redisson . api . RLexSortedSet set = redisson . getLexSortedSet ( "simple" ) ; set . add ( "a" ) ; set . add ( "b" ) ; set . add ( "c" ) ; set . add ( "d" ) ; set . add ( "e" ) ; java . util . Collection < java . lang . String > r = set . range ( "b" , true , "e" , false , 1 , 2 ) ; java . ...
org . junit . Assert . assertArrayEquals ( new java . lang . String [ ] { "c" , "d" } , a )
buildError ( ) { final io . vertx . up . exception . WebException error = new io . vertx . up . exception . _500InternalServerException ( this . getClass ( ) , "Error<sp>Internal" ) ; System . out . println ( error ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertNotNull ( error )
testScalarAdd ( ) { org . apache . commons . math3 . complex . Complex x = new org . apache . commons . math3 . complex . Complex ( 3.0 , 4.0 ) ; double yDouble = 2.0 ; org . apache . commons . math3 . complex . Complex yComplex = new org . apache . commons . math3 . complex . Complex ( yDouble ) ; "<AssertPlaceHolder>...
org . junit . Assert . assertEquals ( x . add ( yComplex ) , x . add ( yDouble ) )
closeDialogViaConnection ( ) { org . geotools . swing . dialog . JTextReporter . Connection conn = showDialog ( org . geotools . swing . dialog . JTextReporterTest . TITLE ) . get ( ) ; conn . closeDialog ( ) ; windowFixture . robot ( ) . waitForIdle ( ) ; windowFixture . requireNotVisible ( ) ; "<AssertPlaceHolder>" ;...
org . junit . Assert . assertFalse ( conn . isOpen ( ) )