input stringlengths 28 18.7k | output stringlengths 39 1.69k |
|---|---|
testKeySerialization ( ) { org . apache . hadoop . io . Text tableName = new org . apache . hadoop . io . Text ( "testTable" ) ; org . apache . accumulo . core . data . Key key = new org . apache . accumulo . core . data . Key ( new org . apache . hadoop . io . Text ( "row | org . junit . Assert . assertEquals ( 0 , expected . compareTo ( actual ) ) |
testSizeAt_1 ( ) { lombok . val array = org . nd4j . linalg . factory . Nd4j . create ( 10 , 20 , 30 ) ; lombok . val exp = org . nd4j . linalg . factory . Nd4j . scalar ( DataType . LONG , 20 ) ; lombok . val op = new org . nd4j . autodiff . opvalidation . SizeAt ( array , 1 ) ; org . nd4j . linalg . factory . Nd4j . ... | org . junit . Assert . assertEquals ( exp , output ) |
enterSafeModeOnPrimaryMasterStart ( ) { mSafeModeManager . notifyPrimaryMasterStarted ( ) ; "<AssertPlaceHolder>" ; } isInSafeMode ( ) { return mSafeModeManager . isInSafeMode ( ) ; } | org . junit . Assert . assertTrue ( mSafeModeManager . isInSafeMode ( ) ) |
testAuthenticationHostConfigWithHttpRemoting ( ) { org . jboss . as . test . manualmode . ejb . client . outbound . connection . security . ElytronRemoteOutboundConnectionTestCase . configureServerSideForInboundHttpRemoting ( org . jboss . as . test . manualmode . ejb . client . outbound . connection . security . Elytr... | org . junit . Assert . assertEquals ( org . jboss . as . test . manualmode . ejb . client . outbound . connection . security . ElytronRemoteOutboundConnectionTestCase . DEFAULT_USERNAME , callIntermediateWhoAmI ( ) ) |
testFindOhip ( ) { java . util . List < org . oscarehr . common . model . Provider > providers = dao . getProvidersWithNonEmptyOhip ( ) ; "<AssertPlaceHolder>" ; } getProvidersWithNonEmptyOhip ( ) { return getHibernateTemplate ( ) . find ( "FROM<sp>Provider<sp>WHERE<sp>ohip_no<sp>!=<sp>''<sp>order<sp>by<sp>last_name,<s... | org . junit . Assert . assertNotNull ( providers ) |
testPartitionPruningWithMetadataCache_1 ( ) { test ( "refresh<sp>table<sp>metadata<sp>dfs.`%s`" , org . apache . drill . exec . store . parquet . TestParquetMetadataCache . TABLE_NAME_1 ) ; checkForMetadataFile ( org . apache . drill . exec . store . parquet . TestParquetMetadataCache . TABLE_NAME_1 ) ; java . lang . S... | org . junit . Assert . assertEquals ( expectedRowCount , actualRowCount ) |
testApplySuggestedFixes_noFixes ( ) { java . util . Map < java . lang . String , java . lang . String > codeMap = com . google . common . collect . ImmutableMap . of ( "file1" , "abcdef" , "file2" , "abcdef" ) ; java . util . Map < java . lang . String , java . lang . String > expectedNewCodeMap = com . google . common... | org . junit . Assert . assertEquals ( expectedNewCodeMap , newCodeMap ) |
testToEbXMLEmpty ( ) { transformer . toEbXML ( new org . openehealth . ipf . commons . ihe . xds . core . requests . query . FindFoldersForMultiplePatientsQuery ( ) , ebXML ) ; "<AssertPlaceHolder>" ; } getSlots ( ) { return getSlotList ( ) . getSlots ( ) ; } | org . junit . Assert . assertEquals ( 0 , ebXML . getSlots ( ) . size ( ) ) |
testWriteText ( ) { java . lang . String input = org . eclipse . rap . rwt . internal . resources . ResourceUtil_Test . createTestString ( 10000 ) ; byte [ ] content = input . getBytes ( "UTF-8" ) ; java . io . File tempFile = java . io . File . createTempFile ( "rap-" , ".test" ) ; tempFile . deleteOnExit ( ) ; org . ... | org . junit . Assert . assertEquals ( input , new java . lang . String ( result , "UTF-8" ) ) |
testServerCallback ( ) { final nl . bzk . brp . bijhouding . ws . util . ServerPasswordCallback serverPasswordCallback = new nl . bzk . brp . bijhouding . ws . util . ServerPasswordCallback ( ) ; final java . lang . String wachtwoord = "pwd" ; serverPasswordCallback . setPassword ( wachtwoord ) ; final org . apache . w... | org . junit . Assert . assertEquals ( wachtwoord , callback . getPassword ( ) ) |
testSshDriver ( ) { com . m11n . jdbc . ssh . Connection connection = com . m11n . jdbc . ssh . DriverManager . getConnection ( sshUrl ) ; com . m11n . jdbc . ssh . JdbcSshDriverTest . logger . info ( "Info:<sp>{}" , connection . getClientInfo ( ) ) ; com . m11n . jdbc . ssh . DatabaseMetaData metadata = connection . g... | org . junit . Assert . assertNotNull ( tables ) |
CalculatePercentDateWhenExpireDateNotEnd ( ) { ru . szhernovoy . Food food = new ru . szhernovoy . Bananas ( "Banana" , new java . util . GregorianCalendar ( 2016 , java . util . GregorianCalendar . AUGUST , 1 ) , new java . util . GregorianCalendar ( 2016 , java . util . GregorianCalendar . AUGUST , 16 ) , 45 , 5 ) ; ... | org . junit . Assert . assertThat ( result , org . hamcrest . core . Is . is ( control ) ) |
testGetChapterFromBookSubObject ( ) { org . apache . cxf . jaxrs . client . WebClient wc = org . apache . cxf . jaxrs . client . WebClient . create ( ( ( "http://localhost:" + ( org . apache . cxf . systest . jaxrs . JAXRSClientServerSubBookTest . PORT ) ) + "/bookstore/booksubresourceobject/chaptersobject/sub/1" ) ) ;... | org . junit . Assert . assertNotNull ( c ) |
parserVersion ( ) { java . lang . StringBuilder xmlLibMessage = new java . lang . StringBuilder ( ) ; boolean validParser = org . exist . validation . XmlLibraryChecker . hasValidParser ( xmlLibMessage ) ; "<AssertPlaceHolder>" ; } toString ( ) { return ( ( ( ( ( java . lang . String . valueOf ( _version ) ) + '.' ) + ... | org . junit . Assert . assertTrue ( xmlLibMessage . toString ( ) , validParser ) |
testGetEventParams ( ) { fr . inria . soctrace . lib . model . Event e1 = IModelFactory . INSTANCE . createEvent ( ) ; fr . inria . soctrace . lib . model . Event e2 = IModelFactory . INSTANCE . createEvent ( ) ; "<AssertPlaceHolder>" ; } getEventParams ( ) { return params ; } | org . junit . Assert . assertEquals ( e1 . getEventParams ( ) , e2 . getEventParams ( ) ) |
testSupplierIdToAdd ( ) { bean . setSupplierIdToAdd ( org . oscm . ui . beans . MarketplaceBeanTest . GLOBAL_MP ) ; "<AssertPlaceHolder>" ; } getSupplierIdToAdd ( ) { return supplierIdToAdd ; } | org . junit . Assert . assertEquals ( org . oscm . ui . beans . MarketplaceBeanTest . GLOBAL_MP , bean . getSupplierIdToAdd ( ) ) |
testReplicaRead ( ) { org . apache . hadoop . hbase . client . AbstractTestAsyncTableRegionReplicasRead . FAIL_PRIMARY_GET = true ; org . apache . hadoop . hbase . client . AbstractTestAsyncTableRegionReplicasRead . REPLICA_ID_TO_COUNT . clear ( ) ; org . apache . hadoop . hbase . client . AsyncTable < ? > table = getT... | org . junit . Assert . assertEquals ( count , org . apache . hadoop . hbase . client . AbstractTestAsyncTableRegionReplicasRead . getPrimaryGetCount ( ) ) |
testAddTrustBundle_noEntityManager_assertException ( ) { final org . nhindirect . config . store . dao . impl . TrustBundleDaoImpl dao = new org . nhindirect . config . store . dao . impl . TrustBundleDaoImpl ( ) ; boolean exceptionOccured = false ; try { dao . addTrustBundle ( new org . nhindirect . config . store . T... | org . junit . Assert . assertTrue ( exceptionOccured ) |
testStrToDate_17170605 ( ) { java . util . Calendar cal = new java . util . GregorianCalendar ( 1717 , 5 , 25 ) ; java . util . Date expected = cal . getTime ( ) ; java . lang . String fixture = "1717/06/25" ; try { java . util . Date actual = info . michaelkohler . helpertools . date . DateFormatHelper . strToDate ( f... | org . junit . Assert . assertTrue ( actual . equals ( expected ) ) |
ownerNotChanged_Null ( ) { org . oscm . domobjects . Subscription sub = givenSubscription ( ) ; ownerNotChanged_Null ( sub ) ; java . util . List < org . oscm . auditlog . model . AuditLogEntry > logEntries = org . oscm . auditlog . AuditLogData . get ( ) ; "<AssertPlaceHolder>" ; } get ( ) { return org . oscm . auditl... | org . junit . Assert . assertNull ( logEntries ) |
testSerialization ( ) { org . jfree . chart . needle . PointerNeedle n1 = new org . jfree . chart . needle . PointerNeedle ( ) ; org . jfree . chart . needle . PointerNeedle n2 = ( ( org . jfree . chart . needle . PointerNeedle ) ( org . jfree . chart . TestUtilities . serialised ( n1 ) ) ) ; "<AssertPlaceHolder>" ; } ... | org . junit . Assert . assertTrue ( n1 . equals ( n2 ) ) |
testSchemaGetTableForUnknownTableReturnNull ( ) { final de . hpi . isg . mdms . model . location . DefaultLocation loc = new de . hpi . isg . mdms . model . location . DefaultLocation ( ) ; final de . hpi . isg . mdms . model . targets . Schema schema1 = de . hpi . isg . mdms . model . targets . DefaultSchema . buildAn... | org . junit . Assert . assertEquals ( schema1 . getTableByName ( "foo" ) , null ) |
testReplaceLastIndex ( ) { org . antlr . tool . Grammar g = new org . antlr . tool . Grammar ( ( "lexer<sp>grammar<sp>t;\n" + ( ( "A<sp>:<sp>\'a\';\n" + "B<sp>:<sp>\'b\';\n" ) + "C<sp>:<sp>\'c\';\n" ) ) ) ; org . antlr . runtime . CharStream input = new org . antlr . runtime . ANTLRStringStream ( "abc" ) ; org . antlr ... | org . junit . Assert . assertEquals ( expecting , result ) |
testCreateFileType ( ) { when ( fileTypeMockDao . getFileTypeByCode ( org . finra . herd . service . impl . FORMAT_FILE_TYPE_CODE ) ) . thenReturn ( null ) ; when ( alternateKeyHelper . validateStringParameter ( anyString ( ) , anyString ( ) ) ) . thenReturn ( org . finra . herd . service . impl . FORMAT_FILE_TYPE_CODE... | org . junit . Assert . assertEquals ( org . finra . herd . service . impl . FORMAT_FILE_TYPE_CODE , fileType . getFileTypeCode ( ) ) |
noCommands ( ) { org . easymock . EasyMock . replay ( backend ) ; for ( int dir : com . willwinder . universalgcodesender . uielements . components . CommandTextAreaTest . directions ) { com . willwinder . universalgcodesender . uielements . components . CommandTextAreaTest . sendArrowEvent ( dir , cta ) ; "<AssertPlac... | org . junit . Assert . assertEquals ( "" , cta . getText ( ) ) |
noVisibleColumns ( ) { com . vaadin . v7 . ui . Table t = com . vaadin . v7 . tests . server . component . table . TableGeneratorTest . createTableWithDefaultContainer ( 3 , 10 ) ; t . setVisibleColumns ( ) ; "<AssertPlaceHolder>" ; } getVisibleColumns ( ) { if ( ( visibleColumns ) == null ) { return null ; } return vi... | org . junit . Assert . assertArrayEquals ( new java . lang . Object [ ] { } , t . getVisibleColumns ( ) ) |
testSubscriptionClassTypeWhenUpdatingBaseModel ( ) { long classTypeId = addClassType ( ) ; long baseModelId = addBaseModelWithClassType ( com . liferay . portlet . subscriptions . test . PARENT_CONTAINER_MODEL_ID_DEFAULT , classTypeId ) ; addSubscriptionClassType ( classTypeId ) ; updateBaseModel ( creatorUser . getUse... | org . junit . Assert . assertEquals ( 1 , com . liferay . portal . test . mail . MailServiceTestUtil . getInboxSize ( ) ) |
removesNonExistentParameterFromOrderedList ( ) { com . eviware . soapui . config . RestRequestConfig requestConfig = buildRestRequestConfigWithParameters ( "first" , "second" , "third" ) ; com . eviware . soapui . impl . rest . RestMethod method = buildRestMethodWithParameters ( "third" , "first" ) ; com . eviware . so... | org . junit . Assert . assertThat ( parameterNameList , org . hamcrest . CoreMatchers . is ( java . util . Arrays . asList ( "first" , "third" ) ) ) |
testStop ( ) { org . easymock . EasyMock . expect ( processManager . getPidFromProcQuery ( ( "State.Name.sw=java,Args.*.eq=-Dcatalina.base=" + ( catalinaBase ) ) ) ) . andReturn ( 123L ) ; processManager . kill ( 123L ) ; org . easymock . EasyMock . expect ( processManager . waitForProcessDeath ( 60 , 123L ) ) . andRet... | org . junit . Assert . assertTrue ( stopped ) |
getNumberOfCategoriesByProcessDefinition ( ) { categories = generateCategory ( 3 , "categoryName" , "test<sp>get<sp>number<sp>of<sp>categories<sp>by<sp>process<sp>definition" ) ; final org . bonitasoft . engine . bpm . process . ProcessDefinition processDefinition = generateProcessDefinition ( 1 , "processName" , "vers... | org . junit . Assert . assertEquals ( 3 , categoryNumber ) |
testGetRequiredElements ( ) { org . qualipso . factory . jabuti . test . JabutiServiceTest . logger . info ( "testSelectClassesAndGetRequiredElements()" ) ; try { java . lang . String user = "SA" ; org . qualipso . factory . jabuti . client . ws . RequiredElementsDetailsArray details = port . getAllRequiredElements ( u... | org . junit . Assert . assertNotNull ( details ) |
testXPathParsing ( ) { document = before . getDOMOwnerDocument ( ) ; createByXParser ( xpath , value ) ; org . xmlbeam . XBProjector projector = new org . xmlbeam . XBProjector ( org . xmlbeam . XBProjector . Flags . TO_STRING_RENDERS_XML , org . xmlbeam . XBProjector . Flags . ABSENT_IS_EMPTY ) ; org . xmlbeam . util ... | org . junit . Assert . assertEquals ( after . toString ( ) , result . toString ( ) ) |
testGetBestPlacemarkDescriptor_Suitable ( ) { com . bc . ceres . core . DefaultServiceRegistry < org . esa . beam . framework . datamodel . PlacemarkDescriptor > serviceRegistry = new com . bc . ceres . core . DefaultServiceRegistry < org . esa . beam . framework . datamodel . PlacemarkDescriptor > ( org . esa . beam .... | org . junit . Assert . assertTrue ( ( ( bestPlacemarkDescriptor == first ) || ( bestPlacemarkDescriptor == second ) ) ) |
testSetAlphaWithInvalidValue ( ) { gc . setAlpha ( 777 ) ; org . eclipse . swt . internal . graphics . GCOperation [ ] gcOperations = org . eclipse . swt . graphics . ControlGC_Test . getGCOperations ( gc ) ; "<AssertPlaceHolder>" ; } getGCOperations ( org . eclipse . swt . graphics . GC ) { return org . eclipse . swt ... | org . junit . Assert . assertEquals ( 0 , gcOperations . length ) |
testTriggerHasUnexistentAttribute ( ) { com . freedomotic . rules . PayloadTest . LOG . info ( ( "Expected<sp>true<sp>if<sp>trigger<sp>has<sp>a<sp>statement<sp>with<sp>an<sp>attribute<sp>which<sp>" + "doesn't<sp>exists<sp>in<sp>the<sp>related<sp>event<sp>payload." ) ) ; com . freedomotic . rules . Payload event = new c... | org . junit . Assert . assertEquals ( false , result ) |
testScalablePrimitiveButHeightNotZero ( ) { final org . kie . workbench . common . stunner . client . lienzo . shape . view . wires . WiresScalableContainer wsc = tested . addScalable ( whPrimitive ) ; final double newWidth = 6531.102 ; final double newHeight = 0.0 ; final double x = 12 ; final double y = 20.5 ; tested... | org . junit . Assert . assertEquals ( tested , wsc ) |
shouldBeAbleToInjectViewsIntoPojos ( ) { final roboguice . view . ViewInjectionTest . B activity = org . robolectric . Robolectric . buildActivity ( roboguice . view . ViewInjectionTest . B . class ) . create ( ) . get ( ) ; "<AssertPlaceHolder>" ; } get ( ) { return null ; } | org . junit . Assert . assertThat ( activity . a . v , org . hamcrest . CoreMatchers . equalTo ( activity . ref ) ) |
testBoundFieldVariableFromOR ( ) { final org . drools . workbench . models . datamodel . rule . RuleModel model = new org . drools . workbench . models . datamodel . rule . RuleModel ( ) ; model . lhs = new org . drools . workbench . models . datamodel . rule . IPattern [ 1 ] ; org . drools . workbench . models . datam... | org . junit . Assert . assertEquals ( constraint1 , lhsBoundField ) |
testmatchUrlForController_threeslashes ( ) { java . lang . String httpOperation = "POST" ; java . lang . String httpUri = "/uri/param1/param2" ; com . webpagebytes . cms . engine . AdminServletOperationsReader readerMock = org . easymock . EasyMock . createMock ( com . webpagebytes . cms . engine . AdminServletOperatio... | org . junit . Assert . assertTrue ( ( result == null ) ) |
shouldPrintSingleVersion ( ) { com . inventage . tools . versiontiger . internal . manifest . VersionRange versionRange = new com . inventage . tools . versiontiger . internal . manifest . VersionRange ( ) ; com . inventage . tools . versiontiger . OsgiVersion startVersion = mock ( com . inventage . tools . versiontige... | org . junit . Assert . assertEquals ( "1.0.1.qualifier" , result . toString ( ) ) |
serde ( ) { java . util . Map < java . lang . String , java . lang . String > pairs = new java . util . LinkedHashMap ( ) ; pairs . put ( "a" , "A" ) ; pairs . put ( "b" , "B" ) ; pairs . put ( "c" , "C" ) ; com . asakusafw . workflow . model . CommandTaskInfo . ConfigurationResolver resolver = new com . asakusafw . wo... | org . junit . Assert . assertThat ( restored . apply ( pairs ) , is ( resolver . apply ( pairs ) ) ) |
testOneFile ( ) { try ( net . runelite . cache . fs . Store store = new net . runelite . cache . fs . Store ( folder . getRoot ( ) ) ) { net . runelite . cache . fs . Index index = store . addIndex ( 0 ) ; net . runelite . cache . fs . Archive archive = index . addArchive ( 0 ) ; archive . setFileData ( new net . runel... | org . junit . Assert . assertEquals ( store , store2 ) |
deveObterSituacaoCadastralComoFoiSetado ( ) { final com . fincatto . documentofiscal . nfe400 . classes . cadastro . NFRetornoConsultaCadastroDados retornoConsultaCadastroDados = new com . fincatto . documentofiscal . nfe400 . classes . cadastro . NFRetornoConsultaCadastroDados ( ) ; final java . util . ArrayList < com... | org . junit . Assert . assertEquals ( listaSituacaoCadastral , retornoConsultaCadastroDados . getSituacaoCadastral ( ) ) |
whenLongPolling_ShouldObserveItemsFromValueColorConditions ( ) { new java . lang . Thread ( ( ) -> { try { java . lang . Thread . sleep ( org . eclipse . smarthome . io . rest . sitemap . internal . SitemapResourceTest . STATE_UPDATE_WAIT_TIME ) ; valueColorItem . setState ( new org . eclipse . smarthome . core . libra... | org . junit . Assert . assertThat ( pageDTO . timeout , org . hamcrest . CoreMatchers . is ( false ) ) |
testDynamicQueryByProjectionMissing ( ) { com . liferay . portal . kernel . dao . orm . DynamicQuery dynamicQuery = com . liferay . portal . kernel . dao . orm . DynamicQueryFactoryUtil . forClass ( com . liferay . journal . model . JournalArticleLocalization . class , _dynamicQueryClassLoader ) ; dynamicQuery . setPro... | org . junit . Assert . assertEquals ( 0 , result . size ( ) ) |
testGetSimpleClassName_withoutPackage ( ) { java . lang . String className = org . eclipse . rap . rwt . internal . lifecycle . LifeCycleAdapterUtil . getSimpleClassName ( "Button" ) ; "<AssertPlaceHolder>" ; } getSimpleClassName ( java . lang . String ) { int index = className . lastIndexOf ( '.' ) ; return index == (... | org . junit . Assert . assertEquals ( "Button" , className ) |
testCluster_3args ( ) { System . out . println ( "cluster" ) ; jsat . clustering . kmeans . ElkanKernelKMeans kmeans = new jsat . clustering . kmeans . ElkanKernelKMeans ( new jsat . distributions . kernels . RBFKernel ( 0.1 ) ) ; jsat . classifiers . ClassificationDataSet toCluster = jsat . FixedProblems . getCircles ... | org . junit . Assert . assertEquals ( 1 , set . size ( ) ) |
testTwoHeaders ( ) { final org . jboss . dmr . ModelNode headers = converter . fromString ( ctx , "{rollback-on-runtime-failure=false;allow-resource-service-restart=true}" ) ; final org . jboss . dmr . ModelNode expected = new org . jboss . dmr . ModelNode ( ) ; expected . get ( "rollback-on-runtime-failure" ) . set ( ... | org . junit . Assert . assertEquals ( expected , headers ) |
testSerialization ( ) { org . jfree . chart . entity . LegendItemEntity e1 = new org . jfree . chart . entity . LegendItemEntity ( new java . awt . geom . Rectangle2D . Double ( 1.0 , 2.0 , 3.0 , 4.0 ) ) ; org . jfree . chart . entity . LegendItemEntity e2 = ( ( org . jfree . chart . entity . LegendItemEntity ) ( org .... | org . junit . Assert . assertEquals ( e1 , e2 ) |
projectPropertiesHavePrecedenceOverSettingsPropertiesFile ( ) { writePropertyFile ( settingsDir , org . gradle . util . GUtil . map ( "prop" , "settings<sp>value" ) ) ; java . util . Map < java . lang . String , java . lang . String > projectProperties = org . gradle . util . GUtil . map ( "prop" , "project<sp>value" )... | org . junit . Assert . assertEquals ( "project<sp>value" , properties . get ( "prop" ) ) |
testProcessActionNoProcessors02 ( ) { compositeRequestDataValueProcessor = new org . terasoluna . gfw . web . mvc . support . CompositeRequestDataValueProcessor ( ) ; java . lang . String result = compositeRequestDataValueProcessor . processAction ( request , "action" , "method" ) ; "<AssertPlaceHolder>" ; } processAct... | org . junit . Assert . assertThat ( result , org . hamcrest . core . Is . is ( "action" ) ) |
readDataNoFile ( ) { org . mockito . Mockito . when ( filereader . fileExist ( org . mockito . Mockito . anyString ( ) ) ) . thenReturn ( false ) ; com . att . aro . core . peripheral . pojo . AppInfo info = null ; info = reader . readData ( "/" ) ; "<AssertPlaceHolder>" ; } getAppInfos ( ) { return appInfos ; } | org . junit . Assert . assertTrue ( ( ( info . getAppInfos ( ) . size ( ) ) == 0 ) ) |
testNoPath ( ) { java . awt . geom . Path2D path = new com . twelvemonkeys . imageio . path . AdobePathBuilder ( new byte [ 26 ] ) . path ( ) ; "<AssertPlaceHolder>" ; } path ( ) { java . util . List < java . util . List < com . twelvemonkeys . imageio . path . AdobePathSegment > > subPaths = new java . util . ArrayLis... | org . junit . Assert . assertNotNull ( path ) |
testCleanText2 ( ) { java . lang . String badText = "Do<sp>you<sp>really<sp>think<sp>we<sp>have<sp>a<sp>different<sp>kind<sp>of<sp>muslim<sp>in<sp>American<sp>.\n" + ( ( ( ( ( ( ( "Do<sp>you<sp>think<sp>they<sp>follow<sp>the<sp>Quran<sp>and<sp>hadith<sp>?\n" + "Infidelity<sp>seems<sp>rampant<sp>in<sp>our<sp>culture<sp>... | org . junit . Assert . assertEquals ( true , isGood ) |
TestSessionData ( ) { org . bukkit . conversations . Conversable conversable = new org . bukkit . conversations . FakeConversable ( ) ; java . util . Map session = new java . util . HashMap ( ) ; session . put ( "key" , "value" ) ; org . bukkit . conversations . ConversationContext context = new org . bukkit . conversa... | org . junit . Assert . assertEquals ( "value" , context . getSessionData ( "key" ) ) |
testReplace ( ) { java . lang . String input = "<?xml<sp>version=\'1.0\'<sp>encoding=\'utf-8\'?>\n" + ( ( ( ( ( ( "<project>\n\r\n\r\n\r\n\r" + "<sp><parent>\r\n" ) + "<sp></parent>\r" 0 ) + "<sp><artifactId>mojo-&sandbox-parent</artifactId>\n" ) + "<sp><version>5-SNAPSHOT</version>\r" ) + "<sp></parent>\r" ) + "<b... | org . junit . Assert . assertEquals ( expected , output . toString ( ) ) |
equalsContent_shouldIndicateUnequalWhenOnlyAddressOneDiffers ( ) { org . openmrs . PersonAddress rileyStreetAddress = new org . openmrs . PersonAddress ( ) ; org . openmrs . PersonAddress crownStreetAddress = new org . openmrs . PersonAddress ( ) ; crownStreetAddress . setAddress1 ( "crown<sp>street" ) ; rileyStreetAdd... | org . junit . Assert . assertThat ( crownStreetAddress . equalsContent ( rileyStreetAddress ) , org . hamcrest . CoreMatchers . is ( false ) ) |
testQueryForObjectAllShardsNullablePartial ( ) { try { com . ctrip . platform . dal . dao . shard . DalHints hints = new com . ctrip . platform . dal . dao . shard . DalHints ( ) ; com . ctrip . platform . dal . dao . shard . StatementParameters parameters = new com . ctrip . platform . dal . dao . shard . StatementPar... | org . junit . Assert . assertNull ( result ) |
testLittleEndianHeaderization ( ) { java . lang . String pcapSampleFiles = "../metron-integration-test/src/main/sample/data/SampleInput/PCAPExampleOutput" ; java . util . List < byte [ ] > pcaps = org . apache . metron . pcap . PcapHelperTest . readSamplePackets ( pcapSampleFiles ) ; for ( byte [ ] pcap : pcaps ) { lon... | org . junit . Assert . assertArrayEquals ( reconstitutedPacket , pcap ) |
testGetIntegerV8Object ( ) { v8 . executeVoidScript ( "foo<sp>=<sp>{bar:<sp>7}" ) ; com . eclipsesource . v8 . V8Object foo = v8 . getObject ( "foo" ) ; "<AssertPlaceHolder>" ; foo . close ( ) ; } getInteger ( java . lang . String ) { throw new java . lang . UnsupportedOperationException ( ) ; } | org . junit . Assert . assertEquals ( 7 , foo . getInteger ( "bar" ) ) |
testHashCodeNull ( ) { entityVersion = new com . redhat . lightblue . EntityVersion ( ) ; "<AssertPlaceHolder>" ; } hashCode ( ) { int hash = 5 ; hash = ( 59 * hash ) + ( java . util . Objects . hashCode ( this . value ) ) ; return hash ; } | org . junit . Assert . assertEquals ( entityVersion . hashCode ( ) , 1 ) |
testModifyTicketRemoveUserEmptyUser ( ) { org . irods . jargon . ticket . packinstr . TicketAdminInp pi = org . irods . jargon . ticket . packinstr . TicketAdminInp . instanceForModifyRemoveAccess ( ticketId , TicketModifyAddOrRemoveTypeEnum . TICKET_MODIFY_USER , "" ) ; "<AssertPlaceHolder>" ; } instanceForModifyRemov... | org . junit . Assert . assertNotNull ( pi ) |
test_minusDays_noChange ( ) { java . time . LocalDateTime t = TEST_2007_07_15_12_30_40_987654321 . minusDays ( 0 ) ; "<AssertPlaceHolder>" ; } minusDays ( long ) { return daysToSubtract == ( Long . MIN_VALUE ) ? plusDays ( Long . MAX_VALUE ) . plusDays ( 1 ) : plusDays ( ( - daysToSubtract ) ) ; } | org . junit . Assert . assertSame ( t , TEST_2007_07_15_12_30_40_987654321 ) |
returnTheSameKeyStoreAfterMultipleLoads ( ) { final org . apache . logging . log4j . core . net . ssl . KeyStoreConfiguration ksc = new org . apache . logging . log4j . core . net . ssl . KeyStoreConfiguration ( TestConstants . KEYSTORE_FILE , new org . apache . logging . log4j . core . net . ssl . MemoryPasswordProvid... | org . junit . Assert . assertTrue ( ( ks == ks2 ) ) |
testCreateShaCertificateAsync ( ) { when ( androidAppService . createShaCertificateAsync ( com . google . firebase . projectmanagement . AndroidAppTest . APP_ID , com . google . firebase . projectmanagement . ShaCertificate . create ( com . google . firebase . projectmanagement . AndroidAppTest . SHA_HASH ) ) ) . thenR... | org . junit . Assert . assertEquals ( certificate , com . google . firebase . projectmanagement . AndroidAppTest . SHA_CERTIFICATE ) |
whenTimedOut ( ) { org . multiverse . commitbarriers . VetoCommitBarrier barrier = new org . multiverse . commitbarriers . VetoCommitBarrier ( ) ; barrier . setTimeout ( 500 , TimeUnit . MILLISECONDS ) ; org . multiverse . TestUtils . sleepMs ( 1000 ) ; "<AssertPlaceHolder>" ; } isAborted ( ) { return ( status ) == ( o... | org . junit . Assert . assertTrue ( barrier . isAborted ( ) ) |
hashIndexTable_add_overwritesPreviousValue ( ) { com . eclipsesource . json . JsonObject . HashIndexTable indexTable = new com . eclipsesource . json . JsonObject . HashIndexTable ( ) ; indexTable . add ( "name" , 23 ) ; indexTable . add ( "name" , 42 ) ; "<AssertPlaceHolder>" ; } get ( java . lang . Object ) { int slo... | org . junit . Assert . assertEquals ( 42 , indexTable . get ( "name" ) ) |
testMultipleFlushAnStop_Issue109 ( ) { java . lang . String collection = ( com . marklogic . client . test . datamovement . WriteBatcherTest . whbTestCollection ) + "_testMultipleFlushAnStop_Issue109" ; java . lang . String query1 = ( "_testMultipleFlushAnStop_Issue109" 0 + collection ) + "_testMultipleFlushAnStop_Issu... | org . junit . Assert . assertTrue ( ( ( com . marklogic . client . test . datamovement . WriteBatcherTest . client . newServerEval ( ) . xquery ( query1 ) . eval ( ) . next ( ) . getNumber ( ) . intValue ( ) ) == 0 ) ) |
testAradRoads ( ) { java . util . Set < es . usc . citius . hipster . graph . GraphEdge < es . usc . citius . hipster . util . examples . RomanianProblem . City , java . lang . Double > > roads = com . google . common . collect . Sets . newHashSet ( graph . edgesOf ( RomanianProblem . City . Arad ) ) ; java . util . Se... | org . junit . Assert . assertEquals ( expected , roads ) |
testCollectAuthRelatedEntitiesJsonShouldMatch ( ) { org . apache . hadoop . hive . ql . QueryState qs = mock ( org . apache . hadoop . hive . ql . QueryState . class ) ; when ( qs . getHiveOperation ( ) ) . thenReturn ( HiveOperation . EXPLAIN ) ; uut . queryState = qs ; org . apache . hadoop . hive . ql . session . Se... | org . junit . Assert . assertEquals ( expected , result ) |
testSomeNull ( ) { System . out . println ( "test<sp>some<sp>null<sp>============================================================================" ) ; java . util . Map < org . apache . kylin . metadata . model . TblColRef , java . util . Set < java . lang . String > > values = com . google . common . collect . Maps . ... | org . junit . Assert . assertEquals ( 9 , result . size ( ) ) |
testNewAssign_2 ( ) { lombok . val arrayX = org . nd4j . linalg . factory . Nd4j . create ( DataType . INT , 5 ) ; lombok . val arrayY = org . nd4j . linalg . factory . Nd4j . create ( new double [ ] { 1 , 2 , 3 , 4 , 5 } ) ; lombok . val exp = org . nd4j . linalg . factory . Nd4j . create ( new int [ ] { 1 , 2 , 3 , 4... | org . junit . Assert . assertEquals ( exp , arrayX ) |
testGetNull ( ) { "<AssertPlaceHolder>" ; } get ( java . lang . String ) { if ( idpName == null ) { return com . google . common . collect . ImmutableSet . of ( ) ; } java . util . Set < java . security . Principal > principals ; if ( ! ( principalMap . containsKey ( idpName ) ) ) { java . lang . String [ ] vs = autoMe... | org . junit . Assert . assertNull ( properties . get ( null ) ) |
findByStackIdsTest ( ) { java . util . Set < java . lang . String > stackingIds = new java . util . HashSet ( ) ; for ( java . lang . Integer i = 0 ; i < 4 ; i ++ ) { java . lang . String stackingId = "test_stack_id" + ( i . toString ( ) ) ; if ( i > 0 ) { stackingIds . add ( stackingId ) ; } org . candlepin . model . ... | org . junit . Assert . assertEquals ( 3 , results . size ( ) ) |
testIllinoisTokenizerEmptyString ( ) { edu . illinois . cs . cogcomp . nlp . tokenizer . Tokenizer tkr = new edu . illinois . cs . cogcomp . nlp . tokenizer . IllinoisTokenizer ( ) ; java . lang . String text = "" ; edu . illinois . cs . cogcomp . nlp . tokenizer . Tokenizer . Tokenization tknzn = tkr . tokenizeTextSpa... | org . junit . Assert . assertEquals ( tknzn . getTokens ( ) . length , 0 ) |
testBuildTableNameNonRootServicePathDataModelByEntityOldEncoding ( ) { System . out . println ( ( ( ( ( getTestTraceHead ( "[NGSIPostgreSQLSink.buildTableName]" ) ) + "--------<sp>When<sp>a<sp>non<sp>root<sp>service-path<sp>is<sp>notified/defaulted<sp>and<sp>data_model<sp>is<sp>" ) + "'dm-by-service-path'<sp>the<sp>MyS... | org . junit . Assert . assertEquals ( expecetedTableName , builtTableName ) |
testNull ( ) { com . udojava . evalex . Expression e = null ; e = new com . udojava . evalex . Expression ( "null" ) ; "<AssertPlaceHolder>" ; } eval ( ) { return this . eval ( v1 . eval ( ) , v2 . eval ( ) ) ; } | org . junit . Assert . assertEquals ( null , e . eval ( ) ) |
testNitrogenRule ( ) { org . openscience . cdk . formula . rules . IRule rule = new org . openscience . cdk . formula . rules . NitrogenRule ( ) ; "<AssertPlaceHolder>" ; } | org . junit . Assert . assertNotNull ( rule ) |
testDatumDAGnaDEG ( ) { nl . bzk . brp . model . bericht . kern . ActieCorrectieAdresBericht actie = new nl . bzk . brp . model . bericht . kern . ActieCorrectieAdresBericht ( ) ; actie . setDatumAanvangGeldigheid ( new nl . bzk . brp . model . algemeen . attribuuttype . kern . DatumEvtDeelsOnbekendAttribuut ( 20130101... | org . junit . Assert . assertFalse ( validator . isValid ( actie , null ) ) |
testReturnTypeException ( ) { java . lang . Object expected = new java . lang . Object ( ) ; java . lang . Object result = org . slieb . throwables . BiFunctionWithThrowable . castBiFunctionWithThrowable ( ( v1 , v2 ) -> { throw new java . lang . Exception ( "expect<sp>exception" ) ; } ) . thatReturnsOnCatch ( expected... | org . junit . Assert . assertEquals ( expected , result ) |
sliceShouldBeEmptyWhenPageableOutOfRange ( ) { repo . saveAll ( org . springframework . data . solr . repository . ITestSolrRepositoryOperations . createProductBeans ( 10 , "slice" ) ) ; org . springframework . data . domain . Slice < org . springframework . data . solr . repository . ProductBean > slice = repo . findP... | org . junit . Assert . assertThat ( slice . hasContent ( ) , org . hamcrest . core . Is . is ( false ) ) |
testToString ( ) { de . metanome . algorithm_integration . ColumnPermutation expectedDependant = new de . metanome . algorithm_integration . ColumnPermutation ( new de . metanome . algorithm_integration . ColumnIdentifier ( "table2" , "column2" ) , new de . metanome . algorithm_integration . ColumnIdentifier ( "table2"... | org . junit . Assert . assertEquals ( expectedStringRepresentation , ind . toString ( ) ) |
deveObterValorOutrasDespesasAcessoriasComoFoiSetado ( ) { final com . fincatto . documentofiscal . nfe400 . classes . nota . NFNotaInfoItemProduto produto = new com . fincatto . documentofiscal . nfe400 . classes . nota . NFNotaInfoItemProduto ( ) ; final java . math . BigDecimal valorOutrasDespesasAcessorias = new jav... | org . junit . Assert . assertEquals ( "999999999999.99" , produto . getValorOutrasDespesasAcessorias ( ) ) |
testCreateDBOFromDTO ( ) { try { org . sagebionetworks . repo . model . dbo . wikiV2 . V2WikiTranslationUtils . createDBOFromDTO ( null ) ; org . junit . Assert . fail ( "Null<sp>dbo<sp>should<sp>not<sp>be<sp>allowed" ) ; } catch ( java . lang . IllegalArgumentException e ) { } java . lang . Long markdownFileHandleId =... | org . junit . Assert . assertTrue ( dbo . equals ( wikiDbo ) ) |
shouldReturnSavingsInterestCalculatorWithMinimumBalanceStrategy ( ) { org . mifos . accounts . savings . interest . SavingsInterestDetail interestDetail = new org . mifos . accounts . savings . interest . SavingsInterestDetailBuilder ( ) . mimimumBalance ( ) . build ( ) ; org . mifos . accounts . savings . interest . I... | org . junit . Assert . assertNotNull ( interestCalculator ) |
fib5Test ( ) { final int actual = edu . rice . pcdp . await . FibAwaitTest . kernel ( 5 ) ; final int expected = 5 ; "<AssertPlaceHolder>" ; } kernel ( int ) { final int [ ] result = new int [ 1 ] ; edu . rice . pcdp . PCDP . finish ( ( ) -> { final CompletableFuture < java . lang . Integer > f1 = new edu . rice . pcdp... | org . junit . Assert . assertEquals ( expected , actual ) |
getAssignedModeFlag ( ) { "<AssertPlaceHolder>" ; } getAssignedModeFlag ( ) { return fAssignedModeFlag ; } | org . junit . Assert . assertEquals ( false , msg . getAssignedModeFlag ( ) ) |
testDfsToTargetIn ( ) { final long source = org . neo4j . graphalgo . impl . BFSDFSTest . id ( "g" ) ; final long target = org . neo4j . graphalgo . impl . BFSDFSTest . id ( "a" ) ; final long [ ] nodes = new org . neo4j . graphalgo . impl . Traverse ( org . neo4j . graphalgo . impl . BFSDFSTest . graph ) . computeDfs ... | org . junit . Assert . assertEquals ( 5 , nodes . length ) |
testAsType05 ( ) { org . dresdenocl . modelinstancetype . types . IModelInstanceString modelInstanceString ; modelInstanceString = org . dresdenocl . modelinstancetype . types . base . BasisJavaModelInstanceFactory . createModelInstanceString ( "something" ) ; org . dresdenocl . modelinstancetype . types . IModelInstan... | org . junit . Assert . assertEquals ( modelInstanceString . getString ( ) , ( ( org . dresdenocl . modelinstancetype . types . IModelInstanceString ) ( castedElement ) ) . getString ( ) ) |
testMultiNormalizerStandardizeNotFitLabels ( ) { org . nd4j . linalg . dataset . MultiNormalizerStandardize original = new org . nd4j . linalg . dataset . MultiNormalizerStandardize ( ) ; original . setFeatureStats ( java . util . Arrays . asList ( new org . nd4j . linalg . dataset . api . preprocessor . stats . Distri... | org . junit . Assert . assertEquals ( original , restored ) |
testSetResourceAsString ( ) { com . github . anno4j . model . impl . ResourceObject resourceObject = anno4j . createObject ( com . github . anno4j . model . impl . ResourceObject . class ) ; resourceObject . setResourceAsString ( "http://www.somepage.org/resource1/" ) ; com . github . anno4j . model . impl . ResourceOb... | org . junit . Assert . assertEquals ( "http://www.somepage.org/resource1/" , resourceObject1 . getResourceAsString ( ) ) |
sameTreadTest ( ) { long value = com . taobao . tddl . qatest . sequence . GroupSequenceTest . seque . nextValue ( ) ; com . taobao . tddl . sequence . impl . GroupSequence seque1 = ( ( com . taobao . tddl . sequence . impl . GroupSequence ) ( com . taobao . tddl . qatest . sequence . GroupSequenceTest . context . getB... | org . junit . Assert . assertEquals ( ( value + 1 ) , value1 ) |
listWithPrefixAndDelimiter2 ( ) { org . apache . hadoop . ozone . s3 . endpoint . BucketEndpoint getBucket = new org . apache . hadoop . ozone . s3 . endpoint . BucketEndpoint ( ) ; org . apache . hadoop . ozone . client . OzoneClient ozoneClient = createClientWithKeys ( "dir1/file2" , "dir1/dir2/file2" , "dir1bh/file"... | org . junit . Assert . assertEquals ( 2 , getBucketResponse . getCommonPrefixes ( ) . size ( ) ) |
listResourceGroups ( ) { int groupCount = azure . resourceGroups ( ) . list ( ) . size ( ) ; System . out . println ( java . lang . String . format ( "Group<sp>count:<sp>%s" , groupCount ) ) ; "<AssertPlaceHolder>" ; } size ( ) { return com . microsoft . azure . management . resources . fluentcore . utils . Utils . toP... | org . junit . Assert . assertTrue ( ( 0 < groupCount ) ) |
testForUnSignedLongArray ( ) { java . lang . Long [ ] longArr = new java . lang . Long [ 2 ] ; longArr [ 0 ] = 1L ; longArr [ 1 ] = 2L ; com . salesforce . phoenix . schema . PhoenixArray arr = com . salesforce . phoenix . schema . PArrayDataType . instantiatePhoenixArray ( PDataType . UNSIGNED_LONG , longArr ) ; PData... | org . junit . Assert . assertEquals ( arr , resultArr ) |
test02 ( ) { invocations = 0 ; int first = java . util . stream . IntStream . range ( 1 , 1000 ) . parallel ( ) . filter ( ( x ) -> { ( invocations ) ++ ; return ( x % 42 ) == 0 ; } ) . findFirst ( ) . getAsInt ( ) ; "<AssertPlaceHolder>" ; } | org . junit . Assert . assertEquals ( 42 , first ) |
testGetTopLevelDataTypes ( ) { final java . lang . String secondUUID = "789" ; final java . lang . String thirdUUID = "012" ; final org . kie . workbench . common . dmn . client . editors . types . common . DataType secondDataType = mock ( org . kie . workbench . common . dmn . client . editors . types . common . DataT... | org . junit . Assert . assertEquals ( topLevelDataTypes , singletonList ( secondDataType ) ) |
testPinyinStr ( ) { java . util . List < java . lang . String > result = org . nlpcn . commons . lang . pinyin . Pinyin . pinyin ( str ) ; System . out . println ( result ) ; "<AssertPlaceHolder>" ; } size ( ) { return hm . size ( ) ; } | org . junit . Assert . assertEquals ( result . size ( ) , str . length ( ) ) |
testGenerateDatastreamFromFiles ( ) { java . util . List < java . net . URI > files = new java . util . ArrayList < java . net . URI > ( ) ; files . add ( java . io . File . createTempFile ( "datastream-orig" , ".ingest" , org . fcrepo . generator . foxml . FOXMLGeneratorTest . TEMP_DIR ) . toURI ( ) ) ; files . add ( ... | org . junit . Assert . assertTrue ( ( ( stream . versions ( ) . size ( ) ) == 3 ) ) |
testGetInheritedUnmetEntityAccessRequirements ( ) { ar = org . sagebionetworks . repo . manager . AccessRequirementManagerImplAutoWiredTest . newEntityAccessRequirement ( entityId ) ; ar = accessRequirementManager . createAccessRequirement ( adminUserInfo , ar ) ; org . sagebionetworks . repo . model . UserInfo otherUs... | org . junit . Assert . assertEquals ( 1 , ars . size ( ) ) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.