input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
testOpschonenSchoon ( ) { nl . bzk . migratiebrp . conversie . regels . proces . logging . Logging . initContext ( ) ; final nl . bzk . migratiebrp . conversie . regels . proces . preconditie . Lo3PersoonslijstOpschoner opschoner = new nl . bzk . migratiebrp . conversie . regels . proces . preconditie . Lo3Persoonslijs...
org . junit . Assert . assertEquals ( pl , schoonPl )
testAddJPAEdmRefConstraintView ( ) { localView = new org . apache . olingo . odata2 . jpa . processor . core . model . JPAEdmAssociationTest ( ) ; objAssociation = new org . apache . olingo . odata2 . jpa . processor . core . model . JPAEdmAssociation ( localView , localView , localView , 1 ) ; try { objAssociation . g...
org . junit . Assert . assertTrue ( ( ( objAssociation . getConsistentEdmAssociationList ( ) . size ( ) ) > 0 ) )
duplicateStructuresButDifferentElementNames ( ) { puck . thrifty . Converter c = new puck . thrifty . Converter ( ) ; puck . thrifty . datatype . ObjectElement obj = c . parse ( "{<sp>\"person1\"<sp>:<sp>{<sp>\"fName\"<sp>:<sp>\"text\",<sp>\"lName\"<sp>:<sp>\"text\"<sp>},<sp>\"person2\"<sp>:<sp>{<sp>\"fName\"<sp>:<sp>\...
org . junit . Assert . assertEquals ( 2 , elemMap . size ( ) )
testInit ( ) { presenter . init ( ) ; "<AssertPlaceHolder>" ; } getView ( ) { return viewer . getView ( ) ; }
org . junit . Assert . assertEquals ( view , presenter . getView ( ) )
testTimeOut ( ) { org . apache . flume . sink . hbase . TestAsyncHBaseSink . testUtility . createTable ( org . apache . flume . sink . hbase . TestAsyncHBaseSink . tableName . getBytes ( ) , org . apache . flume . sink . hbase . TestAsyncHBaseSink . columnFamily . getBytes ( ) ) ; deleteTable = true ; org . apache . fl...
org . junit . Assert . assertFalse ( sink . isConfNull ( ) )
testEvaluationAdjacencySameTermFailureTest ( ) { java . lang . String query = buildFunction ( ContentFunctions . CONTENT_WITHIN_FUNCTION_NAME , "2" , Constants . TERM_OFFSET_MAP_JEXL_VARIABLE_NAME , "'cat'" , "'cat'" ) ; org . apache . commons . jexl2 . Expression expr = datawave . query . jexl . functions . ContentFun...
org . junit . Assert . assertTrue ( datawave . query . jexl . functions . ContentFunctionsTest . expect ( o , false ) )
testChild ( ) { org . antlr . runtime . tree . CommonTree sink = com . cloudera . flume . conf . FlumeBuilder . parseSink ( com . cloudera . flume . conf . TestPatternMatch . simple ) ; com . cloudera . flume . conf . PatternMatch pp = com . cloudera . flume . conf . PatternMatch . kind ( "DECO" ) . child ( com . cloud...
org . junit . Assert . assertNotNull ( m )
partialMessage ( ) { encodeApplicationMessage ( buffer , 0 , messages [ ( ( messageCount ) - 1 ) ] ) ; buffer . limit ( ( ( buffer . position ( ) ) - 1 ) ) ; buffer . flip ( ) ; spliterator = new io . fixprotocol . silverflash . frame . sofh . SofhFrameSpliterator ( buffer ) ; "<AssertPlaceHolder>" ; } tryAdvance ( jav...
org . junit . Assert . assertFalse ( spliterator . tryAdvance ( new java . util . function . Consumer < java . nio . ByteBuffer > ( ) { public void accept ( java . nio . ByteBuffer message ) { } } ) )
getUnknownProvider_shouldGetTheUnknownProviderAccount ( ) { org . openmrs . Provider provider = new org . openmrs . Provider ( ) ; provider . setPerson ( newPerson ( "Unknown<sp>Provider" ) ) ; provider . setIdentifier ( "Test<sp>Unknown<sp>Provider" ) ; provider = service . saveProvider ( provider ) ; org . openmrs . ...
org . junit . Assert . assertEquals ( provider , service . getUnknownProvider ( ) )
testTransformCycleDetection ( ) { org . revapi . Revapi r = org . revapi . Revapi . builder ( ) . withAnalyzers ( org . revapi . AnalysisTest . DummyAnalyzer . class ) . withTransforms ( org . revapi . AnalysisTest . CloningDifferenceTransform . class ) . withReporters ( org . revapi . AnalysisTest . DummyReporter . cl...
org . junit . Assert . assertTrue ( res . isSuccess ( ) )
assertFindJobRunningStatisticsWhenRdbIsNotConfigured ( ) { org . unitils . util . ReflectionUtils . setFieldValue ( statisticManager , "rdbRepository" , null ) ; "<AssertPlaceHolder>" ; } findJobRunningStatisticsWeekly ( ) { if ( ! ( isRdbConfigured ( ) ) ) { return java . util . Collections . emptyList ( ) ; } return ...
org . junit . Assert . assertTrue ( statisticManager . findJobRunningStatisticsWeekly ( ) . isEmpty ( ) )
testCorrectReferenceType ( ) { org . eclipse . xtext . testlanguages . actionLang2 . ORing oRing = ActionLang2Factory . eINSTANCE . createORing ( ) ; org . eclipse . xtext . testlanguages . actionLang2 . ORing oRing2 = ActionLang2Factory . eINSTANCE . createORing ( ) ; oRing . getDisjuncts ( ) . add ( oRing2 ) ; "<Asse...
org . junit . Assert . assertSame ( oRing2 , oRing . getDisjuncts ( ) . get ( 0 ) )
testSwallowNPEInValidation ( ) { org . eclipse . xtext . validation . AbstractDeclarativeValidator test = new org . eclipse . xtext . validation . AbstractDeclarativeValidator ( ) { @ org . eclipse . xtext . validation . Check public void foo ( java . lang . Object x ) { throw new java . lang . NullPointerException ( )...
org . junit . Assert . assertTrue ( chain . getChildren ( ) . isEmpty ( ) )
shouldTimeoutWhileTryingToBruteForce ( ) { byte [ ] seed = network . thunder . core . etc . Tools . hexStringToByteArray ( "010649653115246623551233652115421336a8b6" ) ; network . thunder . core . communication . layer . high . RevocationHash masterHash = network . thunder . core . helper . HashDerivation . calculateRe...
org . junit . Assert . assertNull ( foundHash )
shouldCountCustomMethodWithWithinGeoPoint ( ) { java . lang . String documentId = randomNumeric ( 5 ) ; org . springframework . data . elasticsearch . entities . SampleEntity sampleEntity = new org . springframework . data . elasticsearch . entities . SampleEntity ( ) ; sampleEntity . setId ( documentId ) ; sampleEntit...
org . junit . Assert . assertThat ( count , is ( equalTo ( 1L ) ) )
testNotNullWithParameter ( ) { "<AssertPlaceHolder>" ; } notNull ( T , java . lang . String ) { if ( pParameter == null ) { throw new java . lang . IllegalArgumentException ( java . lang . String . format ( "%s<sp>may<sp>not<sp>be<sp>null" , ( pParamName == null ? com . twelvemonkeys . lang . Validate . UNSPECIFIED_PAR...
org . junit . Assert . assertEquals ( "foo" , com . twelvemonkeys . lang . Validate . notNull ( "foo" , "bar" ) )
ping ( ) { com . baeldung . thrift . CrossPlatformServiceClient client = new com . baeldung . thrift . CrossPlatformServiceClient ( ) ; "<AssertPlaceHolder>" ; } ping ( ) { return "pong" ; }
org . junit . Assert . assertTrue ( client . ping ( ) )
testgetByLabelExistingTypeWithCreation ( ) { java . lang . String label = "test-label" ; org . candlepin . model . ConsumerType ctype = this . createConsumerType ( label , false ) ; org . candlepin . model . ConsumerType test = this . consumerTypeCurator . getByLabel ( label , true ) ; "<AssertPlaceHolder>" ; } getByLa...
org . junit . Assert . assertSame ( ctype , test )
deleteTag ( ) { logger . debug ( "----------------deleteTag<sp>-----------------" ) ; java . lang . Integer tagId = 1 ; tagService . deleteTag ( tagId ) ; com . packtpub . techbuzz . entities . Tag tag = tagService . findTagById ( tagId ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertNull ( tag )
testDoesNotModifyInputString ( ) { java . lang . String input = "The<sp>Quick<sp>Brown<sp>Fox<sp>Jumps<sp>Over<sp>The<sp>Lazy<sp>Dog" ; com . edlio . emailreplyparser . Email email = new com . edlio . emailreplyparser . EmailParser ( ) . parse ( input ) ; java . util . List < com . edlio . emailreplyparser . Fragment >...
org . junit . Assert . assertEquals ( "The<sp>Quick<sp>Brown<sp>Fox<sp>Jumps<sp>Over<sp>The<sp>Lazy<sp>Dog" , fragments . get ( 0 ) . getContent ( ) )
parallel_should_assemble_parallel_of_2 ( ) { net . mostlyoriginal . api . operation . common . OperationFlow operation = parallel ( new net . mostlyoriginal . api . operation . common . TestOperation ( ) , new net . mostlyoriginal . api . operation . common . TestOperation ( ) ) ; "<AssertPlaceHolder>" ; } parallel ( n...
org . junit . Assert . assertEquals ( 2 , operation . operations . size )
testContainsKeyEmptySet ( ) { it . unimi . dsi . fastutil . ints . Int2IntMap m = new it . unimi . dsi . fastutil . ints . AbstractInt2IntMap ( ) { private static final long serialVersionUID = 0L ; @ it . unimi . dsi . fastutil . ints . Override public int size ( ) { return 0 ; } @ it . unimi . dsi . fastutil . ints . ...
org . junit . Assert . assertFalse ( m . containsKey ( 0 ) )
testFetchByPrimaryKeysWithMultiplePrimaryKeysWhereNoPrimaryKeysExist ( ) { long pk1 = com . liferay . portal . kernel . test . util . RandomTestUtil . nextLong ( ) ; long pk2 = com . liferay . portal . kernel . test . util . RandomTestUtil . nextLong ( ) ; java . util . Set < java . io . Serializable > primaryKeys = ne...
org . junit . Assert . assertTrue ( sapEntries . isEmpty ( ) )
testCampaignName ( ) { request . setCampaignName ( "name" ) ; "<AssertPlaceHolder>" ; } getCampaignName ( ) { return ( ( java . lang . String ) ( getParameter ( org . piwik . java . tracking . PiwikRequest . CAMPAIGN_NAME ) ) ) ; }
org . junit . Assert . assertEquals ( "name" , request . getCampaignName ( ) )
testSystemIdPlus ( ) { result1 = org . onosproject . isis . io . util . IsisUtil . systemIdPlus ( com . google . common . primitives . Bytes . toArray ( org . onosproject . isis . io . util . IsisUtil . sourceAndLanIdToBytes ( lanId ) ) ) ; "<AssertPlaceHolder>" ; } is ( java . lang . Class ) { return true ; }
org . junit . Assert . assertThat ( result1 , org . hamcrest . CoreMatchers . is ( lanId ) )
testToBuilder ( ) { com . google . cloud . datastore . ListValue value = com . google . cloud . datastore . ListValue . of ( com . google . cloud . datastore . ListValueTest . CONTENT ) ; "<AssertPlaceHolder>" ; } toBuilder ( ) { return ( this ) == ( com . google . firestore . admin . v1 . DeleteIndexRequest . DEFAULT_...
org . junit . Assert . assertEquals ( value , value . toBuilder ( ) . build ( ) )
testNonMetaInfNotAccessible ( ) { java . lang . ClassLoader cl = java . lang . Thread . currentThread ( ) . getContextClassLoader ( ) ; java . net . URL nonManifestResource = cl . getResource ( "example2.txt" ) ; "<AssertPlaceHolder>" ; } getResource ( java . lang . Object ) { return org . wildfly . transaction . clien...
org . junit . Assert . assertNull ( nonManifestResource )
shouldSetFlushListenerOnWrappedCachingStore ( ) { final org . apache . kafka . streams . state . internals . MeteredTimestampedKeyValueStoreTest . CachedKeyValueStore cachedKeyValueStore = mock ( org . apache . kafka . streams . state . internals . MeteredTimestampedKeyValueStoreTest . CachedKeyValueStore . class ) ; e...
org . junit . Assert . assertTrue ( metered . setFlushListener ( null , false ) )
authenticateOnetimePassword ( ) { org . openengsb . core . api . security . model . Authentication authenticate = onetimeAuthenticator . authenticate ( "testuser" , new org . openengsb . core . services . OneTimeValue ( ( 90489 * 2 ) ) ) ; "<AssertPlaceHolder>" ; } getUsername ( ) { return username ; }
org . junit . Assert . assertThat ( authenticate . getUsername ( ) , org . hamcrest . Matchers . is ( "testuser" ) )
shouldRetrieveCurrentSessionWhenSessionWasOpened ( ) { "<AssertPlaceHolder>" ; } currentSession ( ) { if ( ( org . jstryker . database . HibernateHelper . session ) == null ) { org . jstryker . database . HibernateHelper . session = org . jstryker . database . HibernateHelper . sessionFactory ( ) . openSession ( ) ; or...
org . junit . Assert . assertSame ( org . jstryker . database . HibernateHelper . currentSession ( ) , org . jstryker . database . HibernateHelper . currentSession ( ) )
testDivideWrapped ( ) { int length = 4 ; byte [ ] targetA = new byte [ length ] ; byte [ ] targetB = new byte [ length ] ; byte [ ] targetC = new byte [ length ] ; com . ociweb . pronghorn . util . math . PMath . factors ( 120 , targetA , 2 , length , 3 ) ; com . ociweb . pronghorn . util . math . PMath . factors ( 12 ...
org . junit . Assert . assertEquals ( ( 120 / 12 ) , com . ociweb . pronghorn . util . math . PMath . factorsToInt ( targetC , 2 , length , 3 ) )
itShouldUsePathIfPathIsAbsoluteAndExisting ( ) { fileSupport = new jdk . tools . jaotc . test . collect . FakeFileSupport ( jdk . tools . jaotc . test . collect . Utils . mkpaths ( "/foo" ) , jdk . tools . jaotc . test . collect . Utils . set ( ) ) ; jdk . tools . jaotc . collect . SearchPath target = new jdk . tools ....
org . junit . Assert . assertSame ( result , foo )
testKieBase ( ) { org . kie . api . KieBase kbase = ( ( org . kie . api . KieBase ) ( org . kie . aries . blueprint . tests . KieBlueprintKModuleBasicTest . container . getComponentInstance ( "drl_kiesample2" ) ) ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertNotNull ( kbase )
saveAuthorValidIDs ( ) { author . setAuthorFirstName ( "Marion" ) ; author . setAuthorLastName ( "Smith" ) ; book . setBookId ( 46 ) ; "<AssertPlaceHolder>" ; } saveAuthor ( ) { java . lang . String sql = "insert<sp>into<sp>author(First_Name,Last_Name)<sp>values(?,?)" ; int result = 0 ; if ( ( ( author . getAuthorFirst...
org . junit . Assert . assertTrue ( ( ( manager . saveAuthor ( ) ) == null ) )
test_intersectionBad ( ) { org . threeten . extra . LocalDateRange test1 = org . threeten . extra . LocalDateRange . of ( org . threeten . extra . TestLocalDateRange . DATE_2012_07_01 , org . threeten . extra . TestLocalDateRange . DATE_2012_07_28 ) ; org . threeten . extra . LocalDateRange test2 = org . threeten . ext...
org . junit . Assert . assertEquals ( false , test1 . isConnected ( test2 ) )
shouldParseExportForcedSubtitlesOnly ( ) { subject . parse ( "--forced-only" ) ; "<AssertPlaceHolder>" ; } isExportForcedSubtitlesOnly ( ) { return exportForcedSubtitlesOnly ; }
org . junit . Assert . assertTrue ( subject . isExportForcedSubtitlesOnly ( ) . get ( ) )
testCopyDynAny ( ) { java . lang . String msg ; org . omg . CORBA . TypeCode tc = null ; org . omg . DynamicAny . DynEnum dynAny = null ; org . omg . DynamicAny . DynEnum dynAny2 = null ; tc = org . jacorb . test . EnumTypeHelper . type ( ) ; dynAny = createDynAnyFromTypeCode ( tc ) ; dynAny2 = ( ( org . omg . DynamicA...
org . junit . Assert . assertTrue ( msg , dynAny . equal ( dynAny2 ) )
testWriteRowToStringArrayWihtoutRowId ( ) { org . sagebionetworks . repo . model . table . Row row = new org . sagebionetworks . repo . model . table . Row ( ) ; row . setRowId ( 123L ) ; row . setVersionNumber ( 2L ) ; row . setValues ( java . util . Arrays . asList ( "a" , "b" , "c" ) ) ; boolean includeRowIdAndVersi...
org . junit . Assert . assertEquals ( java . util . Arrays . toString ( expected ) , java . util . Arrays . toString ( results ) )
testCountConceptsWoNotes ( ) { java . lang . String thesaurusId = "http://www.culturecommunication.gouv.fr/th1" ; java . lang . Long nbConceptsWoNotes = thesaurusConceptDAO . countConceptsWoNotes ( thesaurusId ) ; "<AssertPlaceHolder>" ; } countConceptsWoNotes ( java . lang . String ) { org . hibernate . Query query = ...
org . junit . Assert . assertEquals ( 4 , nbConceptsWoNotes . longValue ( ) )
propertyValueCanBeRetrievedByReflection ( ) { org . alfresco . util . schemacomp . DbPropertyTest . DbObjectWithIndexedProp dbo = org . mockito . Mockito . mock ( org . alfresco . util . schemacomp . DbPropertyTest . DbObjectWithIndexedProp . class ) ; org . mockito . Mockito . when ( dbo . getTheProperty ( ) ) . thenR...
org . junit . Assert . assertEquals ( "This<sp>is<sp>the<sp>property<sp>value" , dbProperty . getPropertyValue ( ) )
calendarUtils_getEndOfDay_calendarAsEndOfDayReturned ( ) { java . util . Calendar testInput = java . util . Calendar . getInstance ( ) ; testInput . set ( 2014 , Calendar . MARCH , 10 ) ; java . util . Calendar expResult = ( ( java . util . Calendar ) ( testInput . clone ( ) ) ) ; expResult . set ( Calendar . HOUR_OF_D...
org . junit . Assert . assertEquals ( expResult , result )
shouldDenyForNonOpPlayer ( ) { fr . xephi . authme . permission . PermissionNode node = TestPermissions . DELETE_USER ; org . bukkit . entity . Player player = mock ( org . bukkit . entity . Player . class ) ; boolean result = permissionsManager . hasPermission ( player , node ) ; "<AssertPlaceHolder>" ; } hasPermissio...
org . junit . Assert . assertThat ( result , org . hamcrest . Matchers . equalTo ( false ) )
popupButton_cellHasAPopupButtonAndFreezePaneIsAdded_theCellStillHasAPopupButton ( ) { headerPage . loadTestFixture ( TestFixtures . PopupButton ) ; com . vaadin . addon . spreadsheet . elements . SpreadsheetElement spreadsheetElement = $ ( com . vaadin . addon . spreadsheet . elements . SpreadsheetElement . class ) . f...
org . junit . Assert . assertTrue ( spreadsheetElement . getCellAt ( "D1" ) . hasPopupButton ( ) )
deveObterDataInicioAtividadeComHoraComoFoiSetado ( ) { final com . fincatto . documentofiscal . nfe400 . classes . cadastro . NFRetornoConsultaCadastroSituacaoCadastral retorno = new com . fincatto . documentofiscal . nfe400 . classes . cadastro . NFRetornoConsultaCadastroSituacaoCadastral ( ) ; final java . time . Loc...
org . junit . Assert . assertEquals ( dataInicioAtividade , retorno . getDataInicioAtividade ( ) )
testListQualityForm ( ) { int previous = qualityFormDAO . list ( org . libreplan . business . qualityforms . entities . QualityForm . class ) . size ( ) ; org . libreplan . business . qualityforms . entities . QualityForm qualityForm = createValidQualityForm ( ) ; qualityFormDAO . save ( qualityForm ) ; java . util . L...
org . junit . Assert . assertEquals ( ( previous + 1 ) , list . size ( ) )
sum ( ) { org . apache . beam . sdk . util . MovingFunction f = newFunc ( ) ; for ( int i = 0 ; i < ( org . apache . beam . sdk . util . MovingFunctionTest . SAMPLE_PERIOD ) ; i ++ ) { f . add ( i , i ) ; "<AssertPlaceHolder>" ; } } get ( org . apache . beam . sdk . values . TupleTag ) { return org . apache . beam . sd...
org . junit . Assert . assertEquals ( ( ( ( i + 1 ) * i ) / 2 ) , f . get ( i ) )
testCanIRI5 ( ) { java . lang . String query = "PREFIX<sp>:<sp><http://ontop.inf.unibz.it/test/wellbore#><sp>Select<sp>*<sp>WHERE{\n" + ( "?x<sp>:inWell<sp>?y<sp>.\n" + "}\n" ) ; java . util . ArrayList < java . lang . String > results = runTests ( query ) ; "<AssertPlaceHolder>" ; } size ( ) { return ontopBindingSet ....
org . junit . Assert . assertEquals ( 20 , results . size ( ) )
checkStatusFileCorrectlyUpdated ( ) { when ( context . getString ( "status.file.path" ) ) . thenReturn ( "/var/lib/flume" ) ; when ( context . getString ( "hibernate.connection.url" ) ) . thenReturn ( "jdbc:mysql://host:3306/database" ) ; when ( context . getString ( "table" ) ) . thenReturn ( "table" ) ; when ( contex...
org . junit . Assert . assertEquals ( "10" , sqlSourceHelper2 . getCurrentIndex ( ) )
testReadPlace ( ) { one . nio . serial . StreamsTest . Place place = new one . nio . serial . StreamsTest . Place ( "blah" , "" , "" ) ; one . nio . serial . Serializer < one . nio . serial . StreamsTest . Place > serializer = one . nio . serial . Repository . get ( one . nio . serial . StreamsTest . Place . class ) ; ...
org . junit . Assert . assertEquals ( place , place2 )
nullMappedDatabases ( ) { metaStore . setMappedDatabases ( null ) ; java . util . Set < javax . validation . ConstraintViolation < com . hotels . bdp . waggledance . api . model . FederatedMetaStore > > violations = validator . validate ( metaStore ) ; "<AssertPlaceHolder>" ; } size ( ) { return whiteList . size ( ) ; ...
org . junit . Assert . assertThat ( violations . size ( ) , org . hamcrest . CoreMatchers . is ( 1 ) )
testGetGeolayerPixelSize ( ) { "<AssertPlaceHolder>" ; } getGeolayerPixelSize ( ) { int value = 8 ; org . esa . snap . core . datamodel . MetadataElement currentElement ; if ( ( currentElement = rootElement . getElement ( SpotConstants . TAG_GEOLAYER ) ) != null ) { value = java . lang . Integer . parseInt ( currentEle...
org . junit . Assert . assertEquals ( 4 , metadata . getGeolayerPixelSize ( ) )
testGetBusinessObjectDataEntitiesByPartitionValue ( ) { businessObjectDataDaoTestHelper . createBusinessObjectDataEntity ( org . finra . herd . dao . NAMESPACE , org . finra . herd . dao . BDEF_NAME , org . finra . herd . dao . FORMAT_USAGE_CODE , org . finra . herd . dao . FORMAT_FILE_TYPE_CODE , org . finra . herd . ...
org . junit . Assert . assertEquals ( 2 , businessObjectDataEntities . size ( ) )
shouldResetClassLoader ( ) { final org . apache . tinkerpop . gremlin . groovy . jsr223 . GremlinGroovyScriptEngine scriptEngine = new org . apache . tinkerpop . gremlin . groovy . jsr223 . GremlinGroovyScriptEngine ( ) ; try { scriptEngine . eval ( "addOne(1)" ) ; org . junit . Assert . fail ( "Should<sp>have<sp>tosse...
org . junit . Assert . assertEquals ( 2 , scriptEngine . eval ( "addOne(1)" ) )
testGetTableName ( ) { com . stratelia . silverpeas . silverstatistics . model . TypeStatistics instance = new com . stratelia . silverpeas . silverstatistics . model . TypeStatistics ( ) ; java . lang . String expResult = "" ; java . lang . String result = instance . getTableName ( ) ; "<AssertPlaceHolder>" ; } is ( T...
org . junit . Assert . assertThat ( result , is ( expResult ) )
buildInNullObjSql ( ) { com . blinkfox . zealot . bean . SqlInfo sqlInfo = com . blinkfox . zealot . core . builder . XmlSqlInfoBuilder . newInstace ( new com . blinkfox . zealot . bean . BuildSource ( com . blinkfox . zealot . bean . SqlInfo . newInstance ( ) ) ) . buildInSql ( "a.name" , "" ) ; "<AssertPlaceHolder>" ...
org . junit . Assert . assertEquals ( "" , sqlInfo . getJoin ( ) . toString ( ) )
testGetElementBooleanAbs ( ) { int [ ] values = new int [ ] { 0 , 1 , 2 , 3 } ; boolean [ ] value = new boolean [ ] { true , true , true , false } ; org . eclipse . january . dataset . Dataset input = org . eclipse . january . dataset . DatasetFactory . createFromObject ( org . eclipse . january . dataset . BooleanData...
org . junit . Assert . assertEquals ( result , actualResult )
testShowHideMeasureFormattedMeasure ( ) { org . pentaho . agilebi . modeler . models . annotations . util . MondrianSchemaHandler mondrianSchemaHandler = new org . pentaho . agilebi . modeler . models . annotations . util . MondrianSchemaHandler ( schemaDocument ) ; boolean result = mondrianSchemaHandler . showHideMeas...
org . junit . Assert . assertTrue ( result )
escape_null_leading ( ) { java . lang . String [ ] [ ] result = read ( "a\\N" ) ; "<AssertPlaceHolder>" ; } is ( java . lang . String ) { com . asakusafw . dmdl . java . util . JavaName jn = com . asakusafw . dmdl . java . util . JavaName . of ( new com . asakusafw . dmdl . model . AstSimpleName ( null , name ) ) ; jn ...
org . junit . Assert . assertThat ( result , org . hamcrest . CoreMatchers . is ( new java . lang . String [ ] [ ] { new java . lang . String [ ] { "a\\N" } } ) )
expectExactlyFoundExactly_success ( ) { model . add ( typeStatement ( edu . cornell . mannlib . vitro . webapp . utils . configuration . GENERIC_INSTANCE_URI , edu . cornell . mannlib . vitro . webapp . utils . configuration . ConfigurationBeanLoader . toJavaUri ( edu . cornell . mannlib . vitro . webapp . utils . conf...
org . junit . Assert . assertEquals ( 1 , instances . size ( ) )
testIsPrimitive_TruePrimitiveValue ( ) { org . apache . crunch . types . avro . AvroType truePrimitiveAvroType = new org . apache . crunch . types . avro . AvroType ( int . class , org . apache . avro . Schema . create ( Type . INT ) , org . apache . crunch . types . NoOpDeepCopier . create ( ) ) ; "<AssertPlaceHolder>...
org . junit . Assert . assertTrue ( org . apache . crunch . types . avro . Avros . isPrimitive ( truePrimitiveAvroType ) )
test_createdTimestamp_utilDate ( ) { io . ebeaninternal . server . deploy . meta . DeployBeanProperty prop = new io . ebeaninternal . server . deploy . meta . DeployBeanProperty ( null , java . util . Date . class , null , null ) ; io . ebeaninternal . server . deploy . generatedproperty . GeneratedProperty insertTimes...
org . junit . Assert . assertTrue ( ( value instanceof java . util . Date ) )
isSupportedShouldBeTrueIfTheClientSupportTemplates ( ) { "<AssertPlaceHolder>" ; } isSupported ( ) { if ( ( mapper ) != null ) { try { return mapper . getEndpointFor ( resource . getApiVersion ( ) , resource . getKind ( ) ) . isSupported ( capability ) ; } catch ( com . openshift . restclient . UnsupportedEndpointExcep...
org . junit . Assert . assertTrue ( capability . isSupported ( ) )
testAssertValidForCpnj ( ) { br . com . caelum . stella . validation . Validator < java . lang . String > validator = new br . com . caelum . stella . validation . AcceptAnyValidator ( br . com . caelum . stella . validation . AcceptAnyValidator . Documento . CNPJ ) ; java . lang . String cnpj = "26.637.142/0001-58" ; ...
org . junit . Assert . assertTrue ( validator . invalidMessagesFor ( cnpj ) . isEmpty ( ) )
unzipFileBytesTest ( ) { byte [ ] fileBytes = cn . hutool . core . util . ZipUtil . unzipFileBytes ( cn . hutool . core . io . FileUtil . file ( "e:/02<sp>2-241-.zip" ) , CharsetUtil . CHARSET_GBK , "images/CE-EP-HY-MH01-ES-0001.jpg" ) ; "<AssertPlaceHolder>" ; } file ( java . lang . String ) { if ( cn . hutool . core ...
org . junit . Assert . assertNotNull ( fileBytes )
getsEndpointFromConf ( ) { conf . set ( DynamoDBConstants . ENDPOINT , TEST_ENDPOINT ) ; "<AssertPlaceHolder>" ; verify ( region , never ( ) ) . getServiceEndpoint ( ServiceAbbreviations . Dynamodb ) ; } getDynamoDBEndpoint ( org . apache . hadoop . conf . Configuration , java . lang . String ) { java . lang . String e...
org . junit . Assert . assertEquals ( TEST_ENDPOINT , org . apache . hadoop . dynamodb . DynamoDBUtil . getDynamoDBEndpoint ( conf , null ) )
test_getBlockSelectionlundsInBlockSelection ( ) { text . setText ( blockSelectionTestText ( ) ) ; text . setSize ( 1000 , 1000 ) ; text . setBlockSelection ( true ) ; org . eclipse . swt . graphics . Point lowerRight = text . getLocationAtOffset ( ( ( ( blockSelectionTestTextOneLine ( ) . length ( ) ) * 2 ) + 6 ) ) ; t...
org . junit . Assert . assertEquals ( new org . eclipse . swt . graphics . Rectangle ( 0 , 0 , lowerRight . x , lowerRight . y ) , text . getBlockSelectionBounds ( ) )
testPreviousAbsentValueEmpty ( ) { org . roaringbitmap . RunContainer container = new org . roaringbitmap . RunContainer ( ) ; for ( int i = 0 ; i < 1000 ; i ++ ) { "<AssertPlaceHolder>" ; } } previousAbsentValue ( int ) { long prevAbsentBit = computePreviousAbsentValue ( fromValue ) ; assert prevAbsentBit <= 429496729...
org . junit . Assert . assertEquals ( i , container . previousAbsentValue ( ( ( short ) ( i ) ) ) )
testChemFile ( ) { org . openscience . cdk . interfaces . IChemFile cs = new org . openscience . cdk . ChemFile ( ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertNotNull ( cs )
test2 ( ) { org . apache . servicecomb . swagger . invocation . response . Headers headers = new org . apache . servicecomb . swagger . invocation . response . Headers ( ) ; headers . addHeader ( "h1" , "h1v1" ) ; headers . addHeader ( "h1" , "h1v2" ) ; "<AssertPlaceHolder>" ; } getFirst ( java . lang . String ) { java...
org . junit . Assert . assertEquals ( "h1v1" , headers . getFirst ( "h1" ) )
testAttrScope ( ) { java . lang . String expectedJavascript = "$(\'div\').attr(\'click\',<sp>function()<sp>{\n\talert(\'click<sp>done\');\n});" ; java . lang . String generatedJavascript = new org . odlabs . wiquery . core . javascript . JsStatement ( ) . $ ( null , "div" ) . chain ( org . odlabs . wiquery . core . jav...
org . junit . Assert . assertEquals ( generatedJavascript , expectedJavascript )
testCustomizeInvalidLongPollQPS ( ) { java . lang . String someInvalidQPS = "a" ; java . lang . System . setProperty ( "apollo.longPollQPS" , someInvalidQPS ) ; com . ctrip . framework . apollo . util . ConfigUtil configUtil = new com . ctrip . framework . apollo . util . ConfigUtil ( ) ; "<AssertPlaceHolder>" ; } getL...
org . junit . Assert . assertTrue ( ( ( configUtil . getLongPollQPS ( ) ) > 0 ) )
isTopicReadWhenLoggedLastVisitAndReadTimeOlderThanTopicShouldReturnFalse ( ) { when ( httpSession . getAttribute ( ConfigKeys . LOGGED ) ) . thenReturn ( "1" ) ; net . jforum . entities . Topic topic = new net . jforum . entities . Topic ( ) ; topic . setLastPost ( new net . jforum . entities . Post ( ) ) ; topic . get...
org . junit . Assert . assertFalse ( userSession . isTopicRead ( topic ) )
stream_to_list ( ) { java . util . List < java . lang . String > abc = java . util . stream . Stream . of ( "a" , "b" , "c" ) . collect ( toList ( ) ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertTrue ( ( ( abc . size ( ) ) == 3 ) )
testConcatenateByte_LowestAndHighestByte ( ) { short actual = de . persosim . simulator . utils . Utils . concatenate ( ( ( byte ) ( 0 ) ) , ( ( byte ) ( 255 ) ) ) ; short expected = ( ( short ) ( 255 ) ) ; "<AssertPlaceHolder>" ; } concatenate ( byte , byte ) { short concatenation ; concatenation = de . persosim . sim...
org . junit . Assert . assertEquals ( expected , actual )
shouldRaiseConstraintViolationCauseCreditCardIsNull ( ) { org . agoncal . book . javaee7 . chapter03 . ex04 . CardValidator04 cardValidator = new org . agoncal . book . javaee7 . chapter03 . ex04 . CardValidator04 ( ) ; javax . validation . executable . ExecutableValidator methodValidator = org . agoncal . book . javae...
org . junit . Assert . assertEquals ( 1 , violations . size ( ) )
delete ( ) { personRepository . delete ( this . person . getId ( ) ) ; "<AssertPlaceHolder>" ; } findOne ( ID extends java . io . Serializable ) { return restClient . getForObject ( entityInformation , id ) ; }
org . junit . Assert . assertNull ( personRepository . findOne ( this . person . getId ( ) ) )
testExecution ( ) { final int sampleSize = 3 ; org . qcri . rheem . spark . channels . RddChannel . Instance input = this . createRddChannelInstance ( java . util . Arrays . asList ( 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 ) ) ; org . qcri . rheem . java . channels . CollectionChannel . Instance output = this . createCo...
org . junit . Assert . assertEquals ( sampleSize , result . size ( ) )
shouldAllowDefaultCharsetToBeSet ( ) { org . apache . ibatis . io . Resources . setCharset ( java . nio . charset . Charset . defaultCharset ( ) ) ; "<AssertPlaceHolder>" ; } getCharset ( ) { return org . apache . ibatis . io . Resources . charset ; }
org . junit . Assert . assertEquals ( java . nio . charset . Charset . defaultCharset ( ) , org . apache . ibatis . io . Resources . getCharset ( ) )
testFindFirstWithoutTypeNoMatch ( ) { final com . allanbank . mongodb . bson . element . BinaryElement element = new com . allanbank . mongodb . bson . element . BinaryElement ( "foo" , ( ( byte ) ( 1 ) ) , new byte [ ] { 1 , 2 , 3 } ) ; final com . allanbank . mongodb . bson . Element found = element . findFirst ( "an...
org . junit . Assert . assertNull ( found )
testValidateInterpolate3 ( ) { org . orbisgis . legend . analyzer . symbolizers . PointSymbolizerAnalyzer psa = new org . orbisgis . legend . analyzer . symbolizers . PointSymbolizerAnalyzer ( new org . orbisgis . coremap . renderer . se . PointSymbolizer ( ) ) ; org . orbisgis . legend . analyzer . Interpolate2Real ir...
org . junit . Assert . assertFalse ( psa . validateInterpolateForProportionalPoint ( ir ) )
isJSONValidTrue ( ) { final java . lang . String json = "{\"id\":12345,\"name\":\"The<sp>name\"}" ; final boolean expected = true ; final boolean result = org . sentilo . web . catalog . utils . CatalogUtils . isJSONValid ( json ) ; "<AssertPlaceHolder>" ; } isJSONValid ( java . lang . String ) { final com . fasterxml ...
org . junit . Assert . assertEquals ( expected , result )
shouldGetConnectionWithCredentials ( ) { when ( xaDataSource . getXAConnection ( eq ( "testName" ) , eq ( "testPass" ) ) ) . thenReturn ( xaConnection ) ; com . arjuna . ats . internal . jdbc . ProvidedXADataSourceConnection connection = new com . arjuna . ats . internal . jdbc . ProvidedXADataSourceConnection ( "testD...
org . junit . Assert . assertEquals ( xaConnection , connection . getConnection ( ) )
testRoleAuthorizationPolicyNoBoundLogicalRoles ( ) { loginAsSysTenantAdmin ( ) ; org . pentaho . platform . api . mt . ITenant tenantAcme = tenantManager . createTenant ( systemTenant , org . pentaho . platform . repository2 . unified . TENANT_ID_ACME , tenantAdminRoleName , tenantAuthenticatedRoleName , org . pentaho ...
org . junit . Assert . assertEquals ( 3 , list . size ( ) )
getProcessID ( ) { "<AssertPlaceHolder>" ; } getApplicationId ( ) { if ( null == ( io . sniffy . util . IOUtil . applicationId ) ) { synchronized ( io . sniffy . util . IOUtil . class ) { if ( null == ( io . sniffy . util . IOUtil . applicationId ) ) { java . lang . StringBuilder sb = new java . lang . StringBuilder ( ...
org . junit . Assert . assertNotNull ( io . sniffy . util . IOUtil . getApplicationId ( ) )
getAttributeAsIntList_should_allow_int_list ( ) { au . edu . wehi . idsv . IdsvVariantContextTest . TestIdsvVariantContext vc = new au . edu . wehi . idsv . IdsvVariantContextTest . TestIdsvVariantContext ( minimalVariant ( ) . attribute ( "intlist" , L ( 1 , 2 ) ) . make ( ) ) ; "<AssertPlaceHolder>" ; } getAttributeA...
org . junit . Assert . assertEquals ( 2 , vc . getAttributeAsIntList ( "intlist" ) . size ( ) )
invalidRepresentationTest ( ) { org . apache . cxf . ws . transfer . validationtransformation . XSDResourceValidator validator = new org . apache . cxf . ws . transfer . validationtransformation . XSDResourceValidator ( new javax . xml . transform . stream . StreamSource ( getClass ( ) . getResourceAsStream ( "/xml/xsd...
org . junit . Assert . assertFalse ( result )
testEnviarAsientoRegistral ( ) { es . ieci . tecdoc . fwktd . sir . core . vo . AsientoRegistralFormVO asientoForm = new es . ieci . tecdoc . fwktd . sir . core . vo . AsientoRegistralFormVO ( ) ; asientoForm . setCodigoEntidadRegistral ( "O00002061" ) ; asientoForm . setCodigoEntidadRegistralOrigen ( "O00002061" ) ; a...
org . junit . Assert . assertNotNull ( asiento )
testBuildWithOrderBy ( ) { org . lnu . is . domain . degree . Degree context = new org . lnu . is . domain . degree . Degree ( ) ; org . lnu . is . pagination . OrderBy orderBy1 = new org . lnu . is . pagination . OrderBy ( "person" , org . lnu . is . pagination . OrderByType . ASC ) ; org . lnu . is . pagination . Ord...
org . junit . Assert . assertEquals ( expectedQuery , actualQuery )
givenUsingJava5_whenConvertingAnInputStreamToAString_thenCorrect ( ) { java . lang . String originalString = org . apache . commons . lang3 . RandomStringUtils . randomAlphabetic ( 8 ) ; com . github . mysite . common . guava . InputStream inputStream = new com . github . mysite . common . guava . ByteArrayInputStream ...
org . junit . Assert . assertEquals ( textBuilder . toString ( ) , originalString )
shouldClearOldInfoWhenSetNew ( ) { collector . linesRemoved ( 10 ) ; collector . linesRemoved ( 10 ) ; collector . setInfo ( "qwe" ) ; "<AssertPlaceHolder>" ; } getMessage ( ) { return info . getMessage ( ) ; }
org . junit . Assert . assertEquals ( "qwe" , collector . getMessage ( ) )
copyTo ( ) { java . util . Random rand = new java . util . Random ( java . lang . System . currentTimeMillis ( ) ) ; int valuesWritten = 0 ; int dataLen = 0 ; org . exist . storage . io . VariableByteOutputStream os = new org . exist . storage . io . VariableByteOutputStream ( ) ; for ( int i = 0 ; i < 1000 ; i ++ ) { ...
org . junit . Assert . assertEquals ( valuesRead , valuesCopied )
manualNestedJexlNodeOrderEquality ( ) { org . apache . commons . jexl2 . parser . ASTJexlScript one = datawave . query . jexl . JexlASTHelper . parseJexlQuery ( "(FOO<sp>==<sp>'1'<sp>&&<sp>(BAR<sp>==<sp>'bar'<sp>||<sp>BAR<sp>==<sp>'baz'))" ) ; org . apache . commons . jexl2 . parser . JexlNode or = datawave . query . j...
org . junit . Assert . assertTrue ( datawave . query . jexl . JexlASTHelper . equals ( one , two ) )
testEqualsSelf ( ) { org . jfree . data . time . TimeSeriesDataItem item = new org . jfree . data . time . TimeSeriesDataItem ( new org . jfree . data . time . Day ( 23 , 9 , 2001 ) , 99.7 ) ; "<AssertPlaceHolder>" ; } equals ( java . lang . Object ) { if ( ! ( o instanceof com . mysql . fabric . Server ) ) { return fa...
org . junit . Assert . assertTrue ( item . equals ( item ) )
testGetEventsWithStartOffsetAndCountWithNothingAuthorized ( ) { final org . apache . nifi . provenance . RepositoryConfiguration config = createConfig ( ) ; final org . apache . nifi . provenance . store . PartitionedWriteAheadEventStore store = new org . apache . nifi . provenance . store . PartitionedWriteAheadEventS...
org . junit . Assert . assertTrue ( storedEvents . isEmpty ( ) )
testCreateCustomDdl ( ) { org . finra . herd . model . api . xml . CustomDdlCreateRequest request = customDdlServiceTestHelper . createCustomDdlCreateRequest ( org . finra . herd . rest . NAMESPACE , org . finra . herd . rest . BDEF_NAME , org . finra . herd . rest . FORMAT_USAGE_CODE , org . finra . herd . rest . FORM...
org . junit . Assert . assertEquals ( customDdl , resultCustomDdl )
testSparkMetrics ( ) { io . cdap . cdap . test . ApplicationManager applicationManager = deployApplication ( io . cdap . cdap . spark . metrics . TestSparkMetricsIntegrationApp . class ) ; io . cdap . cdap . test . SparkManager sparkManager = applicationManager . getSparkManager ( TestSparkMetricsIntegrationApp . APP_S...
org . junit . Assert . assertEquals ( 1 , history . size ( ) )
testXBeeDiscoveryStatusStaticAccess ( ) { for ( com . digi . xbee . api . models . XBeeDiscoveryStatus status : com . digi . xbee . api . models . XBeeDiscoveryStatusTest . discoveryStatusValues ) "<AssertPlaceHolder>" ; } get ( int ) { com . digi . xbee . api . models . XBeeDiscoveryStatus status = com . digi . xbee ....
org . junit . Assert . assertEquals ( status , com . digi . xbee . api . models . XBeeDiscoveryStatus . get ( status . getId ( ) ) )
hasEffectWithArguments ( ) { edu . illinois . library . cantaloupe . image . Dimension fullSize = new edu . illinois . library . cantaloupe . image . Dimension ( 600 , 400 ) ; edu . illinois . library . cantaloupe . operation . OperationList opList = new edu . illinois . library . cantaloupe . operation . OperationList...
org . junit . Assert . assertTrue ( instance . hasEffect ( fullSize , opList ) )
invokeSigningForCustomContainer ( ) { org . digidoc4j . ContainerBuilder . setContainerImplementation ( "TEST-FORMAT" , org . digidoc4j . test . CustomContainer . class ) ; org . digidoc4j . SignatureBuilder . setSignatureBuilderForContainerType ( "TEST-FORMAT" , org . digidoc4j . test . MockSignatureBuilder . class ) ...
org . junit . Assert . assertNotNull ( signature )
testMetEnkelePersoonSynchrPers ( ) { final nl . bzk . brp . domain . leveringmodel . persoon . Persoonslijst persoon = maakPersoon ( 1 , 20160906 ) ; final nl . bzk . brp . service . algemeen . BepaalGeleverdePersonenService . Resultaat resultaat = service . bepaal ( SoortDienst . SYNCHRONISATIE_PERSOON , 1 , singleton...
org . junit . Assert . assertThat ( resultaat . getDatumAanvangMaterielePeriodeResultaat ( ) , org . hamcrest . core . Is . is ( 20160906 ) )